]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: use (void) to silence coverity
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Apr 2015 02:43:08 +0000 (22:43 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Apr 2015 02:45:06 +0000 (22:45 -0400)
This shouldn't really fail and anyway not much we can do about it.

CID #996292, #996294, #996295.

src/journal/journald-native.c
src/journal/journald-stream.c
src/journal/journald-syslog.c

index 851625de04acc0ec44763bbe1b6e853905a89e5e..da3faef93e2d949a43ffda1ab8e2ff99f67ec057 100644 (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);
 
index bc5b26d1185fa595838dd692256ed6202875ec24..b572147a56fe7a6b49bddcfff4ed295d693eda99 100644 (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);
index 26fdf62acd2c555fcfef604588be32b86206f12d..90b753094636a35ed6833ff8fcc6624824555398 100644 (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);