chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b87539
)
exec-util: cast to void when return value is ignored
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 01:25:32 +0000
(10:25 +0900)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:03 +0000
(07:50 +0200)
CID
1384262
.
src/basic/exec-util.c
patch
|
blob
|
history
diff --git
a/src/basic/exec-util.c
b/src/basic/exec-util.c
index e195bf98558a8fd02bb16e9dd1100fb42222156c..246cc4f4f844fbb1a370a992975c9037c4f46e5e 100644
(file)
--- 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) {