static int found_override(const char *top, const char *bottom) {
_cleanup_free_ char *dest = NULL;
- int k, r;
+ int k;
pid_t pid;
assert(top);
_exit(1);
}
- r = wait_for_terminate(pid, NULL);
- if (r < 0)
- log_warning("Failed to wait for diff: %s", strerror(-r));
-
+ wait_for_terminate_and_warn("diff", pid);
putchar('\n');
return k;