diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-12 18:26:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-13 12:37:13 +0200 |
commit | 48440643f7a994ad8620daaafed4d914f723440d (patch) | |
tree | 72e70bb8de97842f0f2ed038bc5a18e642111a4b /src/journal/journald-stream.c | |
parent | Revert "alloc-util: return NULL if 0-sized allocation is requested" (diff) | |
download | systemd-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.c | 2 |
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) |