From f058a6b12fb33c7ce5ecf4a644040979f0e32ef7 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 24 2016 02:06:41 +0000 Subject: slbt_archive_import(): fix header inclusion and variable naming. --- diff --git a/src/helper/slbt_archive_import.c b/src/helper/slbt_archive_import.c index b3842f8..e742b6a 100644 --- a/src/helper/slbt_archive_import.c +++ b/src/helper/slbt_archive_import.c @@ -4,7 +4,7 @@ /* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ /*******************************************************************/ -#include +#include #include #include #include @@ -71,9 +71,9 @@ int slbt_archive_import( char * dstarchive, char * srcarchive) { - pid_t pid; int ret; - int code; + pid_t pid; + pid_t rpid; int fd[2]; FILE * fout; char * dst; @@ -124,7 +124,7 @@ int slbt_archive_import( close(fd[1]); } - code = waitpid( + rpid = waitpid( pid, &ectx->exitcode, 0); @@ -135,6 +135,6 @@ int slbt_archive_import( if (src == mrisrc) unlink(src); - return ret || (code != pid) || ectx->exitcode + return ret || (rpid != pid) || ectx->exitcode ? -1 : 0; }