]> git.itanic.dy.fi Git - glucose/blobdiff - options.c
options.c: Indent with tabs, not spaces
[glucose] / 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;
 }