diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-11-19 00:31:03 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-11-19 00:31:03 -0800 |
commit | 26678682ca90b68f19b993e259bf43384c0a18ec (patch) | |
tree | af119f1845d12657d42e8ba57f90350c9f89c57f /set_color.cpp | |
parent | 7d63900fb8167d344a58c0c7e541166974b0c672 (diff) |
Fix indentation of switch statements
Diffstat (limited to 'set_color.cpp')
-rw-r--r-- | set_color.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/set_color.cpp b/set_color.cpp index ff8abe17..eee45206 100644 --- a/set_color.cpp +++ b/set_color.cpp @@ -261,35 +261,35 @@ int main(int argc, char **argv) switch (opt) { - case 0: - break; + case 0: + break; - case 'b': - bgcolor = optarg; - break; - case 'h': - print_help(argv[0], 1); - exit(0); + case 'b': + bgcolor = optarg; + break; + case 'h': + print_help(argv[0], 1); + exit(0); - case 'o': - bold=true; - break; + case 'o': + bold=true; + break; - case 'u': - underline=true; - break; + case 'u': + underline=true; + break; - case 'v': - check_locale_init(); - fprintf(stderr, _("%s, version %s\n"), SET_COLOR, PACKAGE_VERSION); - exit(0); + case 'v': + check_locale_init(); + fprintf(stderr, _("%s, version %s\n"), SET_COLOR, PACKAGE_VERSION); + exit(0); - case 'c': - print_colors(); - exit(0); + case 'c': + print_colors(); + exit(0); - case '?': - return 1; + case '?': + return 1; } @@ -297,19 +297,19 @@ int main(int argc, char **argv) switch (argc-optind) { - case 0: + case 0: // printf( "no fg\n" ); - break; + break; - case 1: - fgcolor=argv[optind]; + case 1: + fgcolor=argv[optind]; // printf( "fg %s\n", fgcolor ); - break; + break; - default: - check_locale_init(); - printf(_("%s: Too many arguments\n"), SET_COLOR); - return 1; + default: + check_locale_init(); + printf(_("%s: Too many arguments\n"), SET_COLOR); + return 1; } /* Infer term256 support */ |