summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-30 18:23:11 -0400
committermidipix <writeonce@midipix.org>2016-04-30 18:27:49 -0400
commit8a3cc285edde6d2adf9441856777a1883346dcb0 (patch)
treee93278c1e08f83d9456ff9d7c6d119f4d0fcff3a /src/helper
parent8ea8fca787118a26878fa6128a2d9f1e8c0e6f51 (diff)
downloadslibtool-8a3cc285edde6d2adf9441856777a1883346dcb0.tar.bz2
slibtool-8a3cc285edde6d2adf9441856777a1883346dcb0.tar.xz
slbt_archive_import(): fix child process control flow.
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/slbt_archive_import.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helper/slbt_archive_import.c b/src/helper/slbt_archive_import.c
index e742b6a..059ff37 100644
--- a/src/helper/slbt_archive_import.c
+++ b/src/helper/slbt_archive_import.c
@@ -45,7 +45,7 @@ static char * slbt_mri_argument(
return lnk;
}
-static int slbt_archive_import_child(
+static void slbt_archive_import_child(
char * program,
int fd[2])
{
@@ -62,7 +62,6 @@ static int slbt_archive_import_child(
execvp(program,argv);
exit(EXIT_FAILURE);
- return -1;
}
int slbt_archive_import(
@@ -96,7 +95,7 @@ int slbt_archive_import(
}
if (pid == 0)
- return slbt_archive_import_child(
+ slbt_archive_import_child(
program,
fd);