From: Zbigniew Jędrzejewski-Szmek Date: Tue, 26 Sep 2017 14:04:33 +0000 (+0200) Subject: basic/log: fix return value from log_struct_iovec_internal() X-Git-Tag: v235~60^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40056777309b06e6119a51cf789d2afa421564d4;p=thirdparty%2Fsystemd.git basic/log: fix return value from log_struct_iovec_internal() This returned value so far wasn't used anywhere, so there's no change in behaviour. --- diff --git a/src/basic/log.c b/src/basic/log.c index 591c6d2a13e..168c6c37ceb 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -1022,7 +1022,7 @@ int log_struct_iovec_internal( } if (sendmsg(journal_fd, &mh, MSG_NOSIGNAL) >= 0) - return -errno; + return -error; } for (i = 0; i < n_input_iovec; i++) {