yes: Minor style fix
This commit is contained in:
parent
0b5ab80b05
commit
9b37332e1e
10
yes.c
10
yes.c
|
@ -20,12 +20,14 @@ main(int argc, char *argv[])
|
||||||
usage();
|
usage();
|
||||||
} ARGEND;
|
} ARGEND;
|
||||||
|
|
||||||
if (argc == 0)
|
if (argc == 0) {
|
||||||
for (;;)
|
for (;;)
|
||||||
puts("y");
|
puts("y");
|
||||||
for (i = 0; ; i++, i %= argc) {
|
} else {
|
||||||
printf("%s", argv[i]);
|
for (i = 0; ; i++, i %= argc) {
|
||||||
putchar((i == argc - 1) ? '\n' : ' ');
|
printf("%s", argv[i]);
|
||||||
|
putchar(i == argc - 1 ? '\n' : ' ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 1; /* should not reach */
|
return 1; /* should not reach */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user