]> git.itanic.dy.fi Git - glucose/commitdiff
options.c: Indent with tabs, not spaces
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 27 Mar 2012 19:13:43 +0000 (22:13 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 27 Mar 2012 19:29:19 +0000 (22:29 +0300)
The coding convention on this project is to indent with tabs. Replace
spaces wit tabs to unify the convention. For example git diffs look
bit odd if tab and space indenting is mixed.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
options.c

index 3a0148d54eb2d670e1bf0305692aebc816abbe59..34eb9d63a8cab982217dfe511217d6c2359a098c 100644 (file)
--- a/options.c
+++ b/options.c
 
 int read_args(int argc, char *argv[], struct user_options *opts)
 {
-        int option_index = 0, c;
-        static struct option long_options[] = {
-                { .val = 'd', .name = "device", .has_arg = 1, },
-                { .val = 'v', .name = "verbose", .has_arg = 2 },
-                { .val = 'o', .name = "output", .has_arg = 1 },
-                { .val = 'f', .name = "format", .has_arg = 1, },
-        };
-        char short_options[] = "d:v:o:f:";
+       int option_index = 0, c;
+       static struct option long_options[] = {
+               { .val = 'd', .name = "device", .has_arg = 1, },
+               { .val = 'v', .name = "verbose", .has_arg = 2 },
+               { .val = 'o', .name = "output", .has_arg = 1 },
+               { .val = 'f', .name = "format", .has_arg = 1, },
+       };
+       char short_options[] = "d:v:o:f:";
 
-        while (1) {
-                c = getopt_long(argc, argv, short_options, long_options,
-                                &option_index);
+       while (1) {
+               c = getopt_long(argc, argv, short_options, long_options,
+                               &option_index);
 
-                if (c == -1)
-                        break;
+               if (c == -1)
+                       break;
 
-                switch (c) {
+               switch (c) {
                case 'd':
                        opts->usbdev = optarg;
                        break;
@@ -70,18 +70,18 @@ int read_args(int argc, char *argv[], struct user_options *opts)
                                return -1;
                        }
                        break;
-                case '?':
+               case '?':
                        return -1;
-                }
-        }
+               }
+       }
 
-        while (optind < argc) {
+       while (optind < argc) {
                /*
                 * Some day we do something useful here with the rest
                 * of the options.. Maybe
                 */
                optind++;
-        }
+       }
 
        return 0;
 }