1
0
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:
Zbigniew Jędrzejewski-Szmek 2015-04-12 22:43:08 -04:00
parent 2ae4842b6c
commit 4a61c3e51e
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);