summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xargs/xargs.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
index c1285a90fdd..6b3ec60bfad 100644
--- a/usr.bin/xargs/xargs.c
+++ b/usr.bin/xargs/xargs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xargs.c,v 1.19 2004/08/23 19:09:36 millert Exp $ */
+/* $OpenBSD: xargs.c,v 1.20 2005/06/20 18:52:19 millert Exp $ */
/* $FreeBSD: xargs.c,v 1.51 2003/05/03 19:09:11 obrien Exp $ */
/*-
@@ -45,7 +45,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: xargs.c,v 1.19 2004/08/23 19:09:36 millert Exp $";
+static const char rcsid[] = "$OpenBSD: xargs.c,v 1.20 2005/06/20 18:52:19 millert Exp $";
#endif
#endif /* not lint */
@@ -123,7 +123,7 @@ main(int argc, char *argv[])
}
maxprocs = 1;
while ((ch = getopt(argc, argv, "0E:I:J:L:n:oP:pR:s:tx")) != -1)
- switch(ch) {
+ switch (ch) {
case 'E':
eofstr = optarg;
break;
@@ -250,12 +250,10 @@ main(int argc, char *argv[])
static void
parse_input(int argc, char *argv[])
{
- int ch, foundeof;
+ int ch, foundeof = 0;
char **avj;
- foundeof = 0;
-
- switch(ch = getchar()) {
+ switch (ch = getchar()) {
case EOF:
/* No arguments since last exec. */
if (p == bbp) {
@@ -515,7 +513,7 @@ run(char **argv)
(void)fflush(stderr);
}
exec:
- switch(pid = vfork()) {
+ switch (pid = vfork()) {
case -1:
err(1, "vfork");
case 0: