summaryrefslogtreecommitdiffstats
path: root/src/basic/exec-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-01-10 02:25:32 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-01-10 12:52:55 +0100
commit0a664f1b15c009ed4b0335d9ddd754efe4f7d324 (patch)
treed2a24eba4c333fc7e7514efcb9685f0ba01328c4 /src/basic/exec-util.c
parenttest: free after use (diff)
downloadsystemd-0a664f1b15c009ed4b0335d9ddd754efe4f7d324.tar.xz
systemd-0a664f1b15c009ed4b0335d9ddd754efe4f7d324.zip
exec-util: cast to void when return value is ignored
CID 1384262.
Diffstat (limited to 'src/basic/exec-util.c')
-rw-r--r--src/basic/exec-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c
index a97295a509..0829b3d836 100644
--- a/src/basic/exec-util.c
+++ b/src/basic/exec-util.c
@@ -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) {