]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
async: voidify call of fsync()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Feb 2025 17:34:13 +0000 (02:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 20:18:15 +0000 (05:18 +0900)
Fixes CID#1564787.

src/shared/async.c

index acde1b11d7d66abb4c646df8673ce331ccda8d9d..8d65062285e8c9da309fb2eaedcfdea9a5ca7663 100644 (file)
@@ -49,7 +49,7 @@ int asynchronous_fsync(int fd, pid_t *ret_pid) {
                 return r;
         if (r == 0) {
                 /* Child process */
-                fsync(fd);
+                (void) fsync(fd);
                 _exit(EXIT_SUCCESS);
         }