aboutsummaryrefslogtreecommitdiff
path: root/lib/xwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xwrap.c')
-rw-r--r--lib/xwrap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index 2e52d6b4..0281e701 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -281,14 +281,14 @@ int xpclose_both(pid_t pid, int *pipes)
}
// Wrapper to xpopen with a pipe for just one of stdin/stdout
-pid_t xpopen(char **argv, int *pipe, int stdout)
+pid_t xpopen(char **argv, int *pipe, int isstdout)
{
int pipes[2], pid;
- pipes[!stdout] = -1;
- pipes[!!stdout] = 0;
+ pipes[!isstdout] = -1;
+ pipes[!!isstdout] = 0;
pid = xpopen_both(argv, pipes);
- *pipe = pid ? pipes[!!stdout] : -1;
+ *pipe = pid ? pipes[!!isstdout] : -1;
return pid;
}