commit 9b37332e1e0d4cdc37662419a710606259c13cd1
parent 0b5ab80b05d396bb51ef4d7ddda222715c63a7b1
Author: sin <sin@2f30.org>
Date: Sun, 1 Feb 2015 01:27:05 +0000
yes: Minor style fix
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/yes.c b/yes.c
@@ -20,12 +20,14 @@ main(int argc, char *argv[])
usage();
} ARGEND;
- if (argc == 0)
+ if (argc == 0) {
for (;;)
puts("y");
- for (i = 0; ; i++, i %= argc) {
- printf("%s", argv[i]);
- putchar((i == argc - 1) ? '\n' : ' ');
+ } else {
+ for (i = 0; ; i++, i %= argc) {
+ printf("%s", argv[i]);
+ putchar(i == argc - 1 ? '\n' : ' ');
+ }
}
return 1; /* should not reach */
}