mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
journal: use (void) to silence coverity
This shouldn't really fail and anyway not much we can do about it. CID #996292, #996294, #996295.
This commit is contained in:
parent
2ae4842b6c
commit
4a61c3e51e
@ -433,7 +433,7 @@ int server_open_native_socket(Server*s) {
|
||||
if (r < 0)
|
||||
return log_error_errno(errno, "bind(%s) failed: %m", sa.un.sun_path);
|
||||
|
||||
chmod(sa.un.sun_path, 0666);
|
||||
(void) chmod(sa.un.sun_path, 0666);
|
||||
} else
|
||||
fd_nonblock(s->native_fd, 1);
|
||||
|
||||
|
@ -720,7 +720,7 @@ int server_open_stdout_socket(Server *s, FDSet *fds) {
|
||||
if (r < 0)
|
||||
return log_error_errno(errno, "bind(%s) failed: %m", sa.un.sun_path);
|
||||
|
||||
chmod(sa.un.sun_path, 0666);
|
||||
(void) chmod(sa.un.sun_path, 0666);
|
||||
|
||||
if (listen(s->stdout_fd, SOMAXCONN) < 0)
|
||||
return log_error_errno(errno, "listen(%s) failed: %m", sa.un.sun_path);
|
||||
|
@ -398,7 +398,7 @@ int server_open_syslog_socket(Server *s) {
|
||||
if (r < 0)
|
||||
return log_error_errno(errno, "bind(%s) failed: %m", sa.un.sun_path);
|
||||
|
||||
chmod(sa.un.sun_path, 0666);
|
||||
(void) chmod(sa.un.sun_path, 0666);
|
||||
} else
|
||||
fd_nonblock(s->syslog_fd, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user