projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfafd0a
)
pipecmd: fix -Wextra complaint about empty body.
author
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 6 Nov 2016 06:44:53 +0000
(17:14 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Sun, 6 Nov 2016 06:44:53 +0000
(17:14 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/pipecmd/pipecmd.c
patch
|
blob
|
history
diff --git
a/ccan/pipecmd/pipecmd.c
b/ccan/pipecmd/pipecmd.c
index 22903bb34627b0df674f7c14b78dfe7a7907bb74..32772a83bc7b69c96cff57747aa779771f2e7604 100644
(file)
--- a/
ccan/pipecmd/pipecmd.c
+++ b/
ccan/pipecmd/pipecmd.c
@@
-123,8
+123,9
@@
pid_t pipecmdarr(int *fd_fromchild, int *fd_tochild, int *fd_errfromchild,
child_errno_fail:
err = errno;
/* Gcc's warn-unused-result fail. */
- if (write(execfail[1], &err, sizeof(err)))
+ if (write(execfail[1], &err, sizeof(err)))
{
;
+ }
exit(127);
}