diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-09 18:16:54 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-09 18:16:56 +0100 |
commit | adfe5671ef794099068038dfccbf1eb5134433c8 (patch) | |
tree | ce5846b231259447a092ab502e133bc91ae91e59 /src/fsckd/fsckd.c | |
parent | 2de68ed95d6e460658946416210df6528dbf1a0d (diff) |
fsckd: the error code is actually returned in 'fd'
Also, we don't use {} for single-line if-blocks.
Diffstat (limited to 'src/fsckd/fsckd.c')
-rw-r--r-- | src/fsckd/fsckd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fsckd/fsckd.c b/src/fsckd/fsckd.c index df413fbb83..d4e9896e91 100644 --- a/src/fsckd/fsckd.c +++ b/src/fsckd/fsckd.c @@ -520,12 +520,12 @@ int main(int argc, char *argv[]) { if (n > 1) { log_error("Too many file descriptors received."); return EXIT_FAILURE; - } else if (n == 1) { + } else if (n == 1) fd = SD_LISTEN_FDS_START + 0; - } else { + else { fd = make_socket_fd(LOG_DEBUG, FSCKD_SOCKET_PATH, SOCK_STREAM | SOCK_CLOEXEC); if (fd < 0) { - log_error_errno(r, "Couldn't create listening socket fd on %s: %m", FSCKD_SOCKET_PATH); + log_error_errno(fd, "Couldn't create listening socket fd on %s: %m", FSCKD_SOCKET_PATH); return EXIT_FAILURE; } } |