summaryrefslogtreecommitdiff
path: root/src/pulsecore/start-child.c
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-06-23 22:21:03 +0200
committerColin Guthrie <colin@mageia.org>2011-06-24 00:34:05 +0100
commit5818a2c63e9a52a545b9c8eb6fdbfa24cfee822f (patch)
tree9d3d4c27d9dfedd4d3384e3559d01d673c042290 /src/pulsecore/start-child.c
parent3adc43b8fe507e3140f7d6f9bab32584b9eadfa4 (diff)
win32: Make some unused-variable warnings go away
Diffstat (limited to 'src/pulsecore/start-child.c')
-rw-r--r--src/pulsecore/start-child.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/start-child.c b/src/pulsecore/start-child.c
index fd1baebb3..7f55d4e29 100644
--- a/src/pulsecore/start-child.c
+++ b/src/pulsecore/start-child.c
@@ -45,10 +45,10 @@
#include "start-child.h"
int pa_start_child_for_read(const char *name, const char *argv1, pid_t *pid) {
+#ifdef HAVE_FORK
pid_t child;
int pipe_fds[2] = { -1, -1 };
-#ifdef HAVE_FORK
if (pipe(pipe_fds) < 0) {
pa_log("pipe() failed: %s", pa_cstrerror(errno));
goto fail;
@@ -106,10 +106,10 @@ int pa_start_child_for_read(const char *name, const char *argv1, pid_t *pid) {
execl(name, name, argv1, NULL);
_exit(1);
}
-#endif
fail:
pa_close_pipe(pipe_fds);
+#endif /* HAVE_FORK */
return -1;
}