diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-21 22:26:42 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-21 22:26:42 +0000 |
commit | 81ca57a91d18d157c0a1405b98641b8de00a0817 (patch) | |
tree | 77e722d6163e3d18b010656532e5c8ca8c6c2206 /src | |
parent | 718c00df82db6bc0510938e32266dbc314cd5f31 (diff) | |
download | coreutils-81ca57a91d18d157c0a1405b98641b8de00a0817.tar.xz |
Remove unused "case 0".
Diffstat (limited to 'src')
-rw-r--r-- | src/cat.c | 3 | ||||
-rw-r--r-- | src/chgrp.c | 3 | ||||
-rw-r--r-- | src/chmod.c | 2 | ||||
-rw-r--r-- | src/chown.c | 3 | ||||
-rw-r--r-- | src/comm.c | 3 | ||||
-rw-r--r-- | src/cp.c | 3 | ||||
-rw-r--r-- | src/csplit.c | 3 | ||||
-rw-r--r-- | src/cut.c | 3 | ||||
-rw-r--r-- | src/date.c | 2 | ||||
-rw-r--r-- | src/df.c | 2 | ||||
-rw-r--r-- | src/env.c | 2 | ||||
-rw-r--r-- | src/expand.c | 3 | ||||
-rw-r--r-- | src/fold.c | 3 | ||||
-rw-r--r-- | src/head.c | 3 | ||||
-rw-r--r-- | src/id.c | 2 | ||||
-rw-r--r-- | src/install.c | 3 | ||||
-rw-r--r-- | src/join.c | 3 | ||||
-rw-r--r-- | src/ln.c | 3 | ||||
-rw-r--r-- | src/ls.c | 3 | ||||
-rw-r--r-- | src/mkdir.c | 2 | ||||
-rw-r--r-- | src/mkfifo.c | 2 | ||||
-rw-r--r-- | src/mknod.c | 2 | ||||
-rw-r--r-- | src/mv.c | 3 | ||||
-rw-r--r-- | src/nl.c | 3 | ||||
-rw-r--r-- | src/paste.c | 3 | ||||
-rw-r--r-- | src/pinky.c | 3 | ||||
-rw-r--r-- | src/pr.c | 3 | ||||
-rw-r--r-- | src/ptx.c | 3 | ||||
-rw-r--r-- | src/rmdir.c | 2 | ||||
-rw-r--r-- | src/seq.c | 3 | ||||
-rw-r--r-- | src/shred.c | 3 | ||||
-rw-r--r-- | src/sum.c | 3 | ||||
-rw-r--r-- | src/tac.c | 2 | ||||
-rw-r--r-- | src/tail.c | 3 | ||||
-rw-r--r-- | src/tee.c | 3 | ||||
-rw-r--r-- | src/touch.c | 3 | ||||
-rw-r--r-- | src/tr.c | 3 | ||||
-rw-r--r-- | src/tty.c | 3 | ||||
-rw-r--r-- | src/uname.c | 3 | ||||
-rw-r--r-- | src/unexpand.c | 3 | ||||
-rw-r--r-- | src/wc.c | 3 | ||||
-rw-r--r-- | src/who.c | 3 |
42 files changed, 0 insertions, 116 deletions
@@ -581,9 +581,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case 'b': number = true; number_nonblank = true; diff --git a/src/chgrp.c b/src/chgrp.c index 2892434d6..824f40ee2 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -189,9 +189,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'H': /* Traverse command-line symlinks-to-directories. */ bit_flags = FTS_COMFOLLOW | FTS_PHYSICAL; break; diff --git a/src/chmod.c b/src/chmod.c index 36943276b..884669d2a 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -365,8 +365,6 @@ main (int argc, char **argv) switch (c) { - case 0: - break; case 'r': case 'w': case 'x': diff --git a/src/chown.c b/src/chown.c index 785f941a2..11a44f53f 100644 --- a/src/chown.c +++ b/src/chown.c @@ -192,9 +192,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'H': /* Traverse command-line symlinks-to-directories. */ bit_flags = FTS_COMFOLLOW | FTS_PHYSICAL; break; diff --git a/src/comm.c b/src/comm.c index 96b59ea47..972aefbbe 100644 --- a/src/comm.c +++ b/src/comm.c @@ -262,9 +262,6 @@ main (int argc, char **argv) while ((c = getopt_long (argc, argv, "123", long_options, NULL)) != -1) switch (c) { - case 0: - break; - case '1': only_file_1 = false; break; @@ -823,9 +823,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case SPARSE_OPTION: x.sparse_mode = XARGMATCH ("--sparse", optarg, sparse_type_string, sparse_type); diff --git a/src/csplit.c b/src/csplit.c index b3b1d194c..dd29ea5f8 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1338,9 +1338,6 @@ main (int argc, char **argv) while ((optc = getopt_long (argc, argv, "f:b:kn:sqz", longopts, NULL)) != -1) switch (optc) { - case 0: - break; - case 'f': prefix = optarg; break; @@ -755,9 +755,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'b': case 'c': /* Build the byte list. */ diff --git a/src/date.c b/src/date.c index 87a97c2e1..2c79a08c1 100644 --- a/src/date.c +++ b/src/date.c @@ -313,8 +313,6 @@ main (int argc, char **argv) != -1) switch (optc) { - case 0: - break; case 'd': datestr = optarg; break; @@ -781,8 +781,6 @@ main (int argc, char **argv) { switch (c) { - case 0: /* Long option. */ - break; case 'a': show_all_fs = true; break; @@ -154,8 +154,6 @@ main (register int argc, register char **argv) { switch (optc) { - case 0: - break; case 'i': ignore_environment = true; break; diff --git a/src/expand.c b/src/expand.c index 7b4db1a23..7b7ecac50 100644 --- a/src/expand.c +++ b/src/expand.c @@ -398,9 +398,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case '?': usage (EXIT_FAILURE); case 'i': diff --git a/src/fold.c b/src/fold.c index 8e343e787..f6fce6a01 100644 --- a/src/fold.c +++ b/src/fold.c @@ -284,9 +284,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'b': /* Count bytes rather than columns. */ count_bytes = true; break; diff --git a/src/head.c b/src/head.c index 0aa59bab9..cdc21d6ac 100644 --- a/src/head.c +++ b/src/head.c @@ -1027,9 +1027,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case PRESUME_INPUT_PIPE_OPTION: presume_input_pipe = true; break; @@ -132,8 +132,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; case 'a': /* Ignore -a, for compatibility with SVR4. */ break; diff --git a/src/install.c b/src/install.c index b2484540f..880c6675d 100644 --- a/src/install.c +++ b/src/install.c @@ -232,9 +232,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'V': /* FIXME: this is deprecated. Remove it in 2001. */ error (0, 0, _("warning: --version-control (-V) is obsolete; support for\ diff --git a/src/join.c b/src/join.c index 3b2383ebf..b91911227 100644 --- a/src/join.c +++ b/src/join.c @@ -768,9 +768,6 @@ main (int argc, char **argv) switch (optc) { - case 0: - break; - case 'v': print_pairables = false; /* Fall through. */ @@ -431,9 +431,6 @@ main (int argc, char **argv) { switch (c) { - case 0: /* Long-named option. */ - break; - case 'V': /* FIXME: this is deprecated. Remove it in 2001. */ error (0, 0, _("warning: --version-control (-V) is obsolete; support for\ @@ -1431,9 +1431,6 @@ decode_switches (int argc, char **argv) { switch (c) { - case 0: - break; - case 'a': all_files = true; really_all_files = true; diff --git a/src/mkdir.c b/src/mkdir.c index a3288e71f..e52ac9cfb 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -102,8 +102,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: /* Long option. */ - break; case 'p': create_parents = true; break; diff --git a/src/mkfifo.c b/src/mkfifo.c index 91edb194d..c11ab60fe 100644 --- a/src/mkfifo.c +++ b/src/mkfifo.c @@ -97,8 +97,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; case 'm': specified_mode = optarg; break; diff --git a/src/mknod.c b/src/mknod.c index 78d874445..e64352385 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -108,8 +108,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; case 'm': specified_mode = optarg; break; @@ -384,9 +384,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case 'V': /* FIXME: this is deprecated. Remove it in 2001. */ error (0, 0, _("warning: --version-control (-V) is obsolete; support for\ @@ -460,9 +460,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case 'h': if (! build_type_arg (&header_type, &header_regex)) { diff --git a/src/paste.c b/src/paste.c index bc1b3e4ac..9692cb3bc 100644 --- a/src/paste.c +++ b/src/paste.c @@ -460,9 +460,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'd': /* Delimiter character(s). */ if (optarg[0] == '\0') diff --git a/src/pinky.c b/src/pinky.c index 8f888c9c1..2e97fc8a6 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -558,9 +558,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 's': do_short_format = true; break; @@ -888,9 +888,6 @@ main (int argc, char **argv) switch (c) { - case 0: /* getopt long option */ - break; - case 1: /* Non-option argument. */ if (*optarg == '+') { @@ -1985,9 +1985,6 @@ main (int argc, char **argv) default: usage (EXIT_FAILURE); - case 0: - break; - case 'C': fputs (_("\ This program is free software; you can redistribute it and/or modify\n\ diff --git a/src/rmdir.c b/src/rmdir.c index b919e6b2a..8facbddf8 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -185,8 +185,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: /* Long option. */ - break; case 'p': empty_paths = true; break; @@ -346,9 +346,6 @@ main (int argc, char **argv) switch (optc) { - case 0: - break; - case 'f': format_str = optarg; break; diff --git a/src/shred.c b/src/shred.c index 7680192c1..19bdbb461 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1603,9 +1603,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case 'f': flags.force = true; break; @@ -236,9 +236,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'r': /* For SysV compatibility. */ sum_func = bsd_sum_file; break; @@ -620,8 +620,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; case 'b': separator_ends_record = false; break; diff --git a/src/tail.c b/src/tail.c index 53ea0dd59..c7cd58c32 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1478,9 +1478,6 @@ parse_options (int argc, char **argv, { switch (c) { - case 0: - break; - case 'F': forever = true; follow_mode = Follow_name; @@ -98,9 +98,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'a': append = true; break; diff --git a/src/touch.c b/src/touch.c index c3575f754..ea0759b0c 100644 --- a/src/touch.c +++ b/src/touch.c @@ -282,9 +282,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case 'a': change_times |= CH_ATIME; break; @@ -1685,9 +1685,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case 'c': case 'C': complement = true; @@ -100,9 +100,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 's': silent = true; break; diff --git a/src/uname.c b/src/uname.c index 9e7026ac2..8380a6305 100644 --- a/src/uname.c +++ b/src/uname.c @@ -166,9 +166,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case 'a': toprint = -1; break; diff --git a/src/unexpand.c b/src/unexpand.c index 42fdb8fbc..60321d47a 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -492,9 +492,6 @@ main (int argc, char **argv) { switch (c) { - case 0: - break; - case '?': usage (EXIT_FAILURE); case 'a': @@ -615,9 +615,6 @@ main (int argc, char **argv) while ((optc = getopt_long (argc, argv, "clLmw", longopts, NULL)) != -1) switch (optc) { - case 0: - break; - case 'c': print_bytes = true; break; @@ -703,9 +703,6 @@ main (int argc, char **argv) { switch (optc) { - case 0: - break; - case 'a': need_boottime = true; need_deadprocs = true; |