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:45:06 -04:00
parent 2ae4842b6c
commit 4a61c3e51e
3 changed files with 3 additions and 3 deletions
+1 -1
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);
+1 -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);
+1 -1
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);