From 1059ea111d5267a125e536c1b17c9f9e9c858a0c Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Tue, 27 Mar 2012 22:13:43 +0300 Subject: [PATCH] options.c: Indent with tabs, not spaces 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 --- options.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/options.c b/options.c index 3a0148d..34eb9d6 100644 --- a/options.c +++ b/options.c @@ -26,23 +26,23 @@ 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; } -- 2.44.0