[hackers] [sbase] yes: Minor style fix || sin

From: <git_AT_suckless.org>
Date: Sun, 1 Feb 2015 02:30:47 +0100 (CET)

commit 005459b8e36f73ca89cdccda9acf580c54ee2e21
Author: sin <sin_AT_2f30.org>
Date: Sun Feb 1 01:27:05 2015 +0000

    yes: Minor style fix

diff --git a/yes.c b/yes.c
index c3f2314..92be761 100644
--- a/yes.c
+++ b/yes.c
_AT_@ -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 */
 }
Received on Sun Feb 01 2015 - 02:30:47 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 01 2015 - 02:36:12 CET