diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2013-05-10 03:49:05 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2013-05-10 03:49:05 +0000 |
commit | a274be7720ee1956b2f2775c6e02da400c2475a2 (patch) | |
tree | c5f07c6c2af43d4f410e6c36d8a5cbbeda395551 /usr.bin | |
parent | 11967f3ce176d3e50b97785661a3b0d3e79e9c54 (diff) |
Style(9) changes fo xargs.c
Notes
Notes:
svn path=/head/; revision=250431
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/xargs/xargs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index e20452840a1d..6bd3e9fd46fb 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -670,12 +670,14 @@ pids_init(void) static int pids_empty(void) { + return (curprocs == 0); } static int pids_full(void) { + return (curprocs >= maxprocs); } @@ -709,7 +711,6 @@ findfreeslot(void) if ((slot = findslot(NOPID)) < 0) errx(1, "internal error: no free pid slot"); - return (slot); } @@ -721,13 +722,13 @@ findslot(pid_t pid) for (slot = 0; slot < maxprocs; slot++) if (childpids[slot] == pid) return (slot); - return (-1); } static void clearslot(int slot) { + childpids[slot] = NOPID; } @@ -762,6 +763,7 @@ prompt(void) static void usage(void) { + fprintf(stderr, "usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]\n" " [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]\n" |