]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
exec-util: cast to void when return value is ignored
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 01:25:32 +0000 (10:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 11:52:55 +0000 (20:52 +0900)
CID 1384262.

src/basic/exec-util.c

index a97295a50918a8962cdd4fae6db75f2b44e56d52..0829b3d836c09144314c5f7ac4511319911fdd3a 100644 (file)
@@ -67,7 +67,7 @@ static int do_spawn(const char *path, char *argv[], int stdout_fd, pid_t *pid) {
                             dup2(stdout_fd, STDOUT_FILENO) < 0)
                                 return -errno;
 
-                        fd_cloexec(STDOUT_FILENO, false);
+                        (void) fd_cloexec(STDOUT_FILENO, false);
                 }
 
                 if (!argv) {