X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fxsystem.c;h=b8ada59d25dbdd196181dbaa68a575b05749d6e6;hp=ae7ca87fe7ac2ee2221da1d529e20848ba58345d;hb=980cfb2e931935a2bd34addccd073811ad1db8e7;hpb=599cc259280ccde97b2a3b459c3f015db6390127 diff --git a/libopkg/xsystem.c b/libopkg/xsystem.c index ae7ca87..b8ada59 100644 --- a/libopkg/xsystem.c +++ b/libopkg/xsystem.c @@ -30,8 +30,7 @@ Otherwise, the 8-bit return value of the program ala WEXITSTATUS as defined in . */ -int -xsystem(const char *argv[]) +int xsystem(const char *argv[]) { int status; pid_t pid; @@ -44,7 +43,7 @@ xsystem(const char *argv[]) return -1; case 0: /* child */ - execvp(argv[0], (char*const*)argv); + execvp(argv[0], (char *const *)argv); _exit(-1); default: /* parent */ @@ -58,14 +57,14 @@ xsystem(const char *argv[]) if (WIFSIGNALED(status)) { opkg_msg(ERROR, "%s: Child killed by signal %d.\n", - argv[0], WTERMSIG(status)); + argv[0], WTERMSIG(status)); return -1; } if (!WIFEXITED(status)) { /* shouldn't happen */ opkg_msg(ERROR, "%s: Your system is broken: got status %d " - "from waitpid.\n", argv[0], status); + "from waitpid.\n", argv[0], status); return -1; }