Style(9) changes fo xargs.c

This commit is contained in:
eadler 2013-05-10 03:49:05 +00:00
parent 56def3d68d
commit 7eb6dc1bda

View File

@ -670,12 +670,14 @@ pids_init(void)
static int static int
pids_empty(void) pids_empty(void)
{ {
return (curprocs == 0); return (curprocs == 0);
} }
static int static int
pids_full(void) pids_full(void)
{ {
return (curprocs >= maxprocs); return (curprocs >= maxprocs);
} }
@ -709,7 +711,6 @@ findfreeslot(void)
if ((slot = findslot(NOPID)) < 0) if ((slot = findslot(NOPID)) < 0)
errx(1, "internal error: no free pid slot"); errx(1, "internal error: no free pid slot");
return (slot); return (slot);
} }
@ -721,13 +722,13 @@ findslot(pid_t pid)
for (slot = 0; slot < maxprocs; slot++) for (slot = 0; slot < maxprocs; slot++)
if (childpids[slot] == pid) if (childpids[slot] == pid)
return (slot); return (slot);
return (-1); return (-1);
} }
static void static void
clearslot(int slot) clearslot(int slot)
{ {
childpids[slot] = NOPID; childpids[slot] = NOPID;
} }
@ -762,6 +763,7 @@ prompt(void)
static void static void
usage(void) usage(void)
{ {
fprintf(stderr, fprintf(stderr,
"usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]\n" "usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]\n"
" [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]\n" " [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]\n"