summaryrefslogtreecommitdiffstats
path: root/src/journal/journald-stream.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-12 18:26:02 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-13 12:37:13 +0200
commit48440643f7a994ad8620daaafed4d914f723440d (patch)
tree72e70bb8de97842f0f2ed038bc5a18e642111a4b /src/journal/journald-stream.c
parentRevert "alloc-util: return NULL if 0-sized allocation is requested" (diff)
downloadsystemd-48440643f7a994ad8620daaafed4d914f723440d.tar.xz
systemd-48440643f7a994ad8620daaafed4d914f723440d.zip
journal: voidify fd_nonblock()
CID #1396098 CID #1396096 CID #1396091 CID #1396086
Diffstat (limited to 'src/journal/journald-stream.c')
-rw-r--r--src/journal/journald-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
index dbf3503a82..267e63f4a2 100644
--- a/src/journal/journald-stream.c
+++ b/src/journal/journald-stream.c
@@ -804,7 +804,7 @@ int server_open_stdout_socket(Server *s) {
if (listen(s->stdout_fd, SOMAXCONN) < 0)
return log_error_errno(errno, "listen(%s) failed: %m", sa.un.sun_path);
} else
- fd_nonblock(s->stdout_fd, 1);
+ (void) fd_nonblock(s->stdout_fd, true);
r = sd_event_add_io(s->event, &s->stdout_event_source, s->stdout_fd, EPOLLIN, stdout_stream_new, s);
if (r < 0)