tree-wide: make use of log_error_errno() return value

Turns this:

        r = -errno;
        log_error_errno(errno, "foo");

into this:

        r = log_error_errno(errno, "foo");

and this:

        r = log_error_errno(errno, "foo");
        return r;

into this:

        return log_error_errno(errno, "foo");
This commit is contained in:
Lennart Poettering
2015-09-09 08:20:20 +02:00
parent 3cc2aff1ab
commit 76ef789d26
18 changed files with 80 additions and 62 deletions
+1 -2
View File
@@ -619,8 +619,7 @@ int manager_read_resolv_conf(Manager *m) {
}
if (fstat(fileno(f), &st) < 0) {
log_error_errno(errno, "Failed to stat open file: %m");
r = -errno;
r = log_error_errno(errno, "Failed to stat open file: %m");
goto clear;
}