summaryrefslogtreecommitdiff
path: root/src/fsckd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-03-09 18:16:54 +0100
committerLennart Poettering <lennart@poettering.net>2015-03-09 18:16:56 +0100
commitadfe5671ef794099068038dfccbf1eb5134433c8 (patch)
treece5846b231259447a092ab502e133bc91ae91e59 /src/fsckd
parent2de68ed95d6e460658946416210df6528dbf1a0d (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')
-rw-r--r--src/fsckd/fsckd.c6
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;
}
}