sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 2d64fa94830d0ae76e4cbcb65499ac9fdc9c594b
parent 574e3d48ed1bf60805f16585b4755ac733320494
Author: sin <sin@2f30.org>
Date:   Wed,  8 Jan 2014 20:27:27 +0000

Rename runcmd() to spawn()

Diffstat:
Mxargs.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xargs.c b/xargs.c @@ -21,7 +21,7 @@ static int parseescape(void); static char *poparg(void); static void deinputstr(char *); static void waitchld(void); -static void runcmd(void); +static void spawn(void); static char **cmd; static char *argb; @@ -94,7 +94,7 @@ main(int argc, char *argv[]) i++; } cmd[i] = NULL; - if (i == 1 && rflag == 1); else runcmd(); + if (i == 1 && rflag == 1); else spawn(); for (; i >= 0; i--) free(cmd[i]); } while (arg); @@ -248,7 +248,7 @@ waitchld(void) } static void -runcmd(void) +spawn(void) { pid_t pid; int saved_errno;