summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-30 18:23:51 -0400
committermidipix <writeonce@midipix.org>2016-04-30 18:27:52 -0400
commitd986a0080ef56697619767a61120f0ab10ce804d (patch)
tree73816d290652cee5f5f7b255eb98a32776cf40cc /src
parent8a3cc285edde6d2adf9441856777a1883346dcb0 (diff)
downloadslibtool-d986a0080ef56697619767a61120f0ab10ce804d.tar.bz2
slibtool-d986a0080ef56697619767a61120f0ab10ce804d.tar.xz
slbt_dump_machine(): fix child process control flow.
Diffstat (limited to 'src')
-rw-r--r--src/helper/slbt_dump_machine.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c
index 0ef13d5..b062fb1 100644
--- a/src/helper/slbt_dump_machine.c
+++ b/src/helper/slbt_dump_machine.c
@@ -16,7 +16,7 @@
#include <slibtool/slibtool.h>
#include "slibtool_spawn_impl.h"
-static int slbt_dump_machine_child(
+static void slbt_dump_machine_child(
char * program,
int fd[2])
{
@@ -43,7 +43,6 @@ static int slbt_dump_machine_child(
execvp(program,argv);
exit(EXIT_FAILURE);
- return -1;
}
int slbt_dump_machine(
@@ -77,7 +76,7 @@ int slbt_dump_machine(
}
if (pid == 0)
- return slbt_dump_machine_child(
+ slbt_dump_machine_child(
program,
fd);