chiark / gitweb /
basic/log: fix return value from log_struct_iovec_internal()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Sep 2017 14:04:33 +0000 (16:04 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 26 Sep 2017 14:04:33 +0000 (16:04 +0200)
This returned value so far wasn't used anywhere, so there's no change
in behaviour.

src/basic/log.c

index 21f37c36e50d58770eadfe94359f62d275471f98..0581be58c963420ed8e11d98521d36d3e22880df 100644 (file)
@@ -1040,7 +1040,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++) {