From 8a3cc285edde6d2adf9441856777a1883346dcb0 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 30 Apr 2016 18:23:11 -0400 Subject: slbt_archive_import(): fix child process control flow. --- src/helper/slbt_archive_import.c | 5 ++--- 1 file 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); -- cgit v1.2.3