summaryrefslogtreecommitdiff
path: root/runit/runsvdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'runit/runsvdir.c')
-rw-r--r--runit/runsvdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index 39929fc..4b94aa2 100644
--- a/runit/runsvdir.c
+++ b/runit/runsvdir.c
@@ -184,7 +184,7 @@ static int setup_log(void)
warnx("log must have at least seven characters");
return 0;
}
- if (pipe(logpipe) == -1) {
+ if (pipe(logpipe)) {
warnx("cannot create pipe for log");
return -1;
}