mirror of
https://github.com/systemd/systemd.git
synced 2025-01-23 02:04:32 +03:00
journal: voidify fd_nonblock()
CID #1396098 CID #1396096 CID #1396091 CID #1396086
This commit is contained in:
parent
fd8879498d
commit
48440643f7
@ -526,7 +526,7 @@ int server_open_audit(Server *s) {
|
||||
return 0;
|
||||
}
|
||||
} else
|
||||
fd_nonblock(s->audit_fd, 1);
|
||||
(void) fd_nonblock(s->audit_fd, true);
|
||||
|
||||
r = setsockopt(s->audit_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one));
|
||||
if (r < 0)
|
||||
|
@ -461,7 +461,7 @@ int server_open_native_socket(Server*s) {
|
||||
|
||||
(void) chmod(sa.un.sun_path, 0666);
|
||||
} else
|
||||
fd_nonblock(s->native_fd, 1);
|
||||
(void) fd_nonblock(s->native_fd, true);
|
||||
|
||||
r = setsockopt(s->native_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one));
|
||||
if (r < 0)
|
||||
|
@ -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)
|
||||
|
@ -465,7 +465,7 @@ int server_open_syslog_socket(Server *s) {
|
||||
|
||||
(void) chmod(sa.un.sun_path, 0666);
|
||||
} else
|
||||
fd_nonblock(s->syslog_fd, 1);
|
||||
(void) fd_nonblock(s->syslog_fd, true);
|
||||
|
||||
r = setsockopt(s->syslog_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one));
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user