summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-21 22:26:42 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-21 22:26:42 +0000
commit81ca57a91d18d157c0a1405b98641b8de00a0817 (patch)
tree77e722d6163e3d18b010656532e5c8ca8c6c2206 /src
parent718c00df82db6bc0510938e32266dbc314cd5f31 (diff)
downloadcoreutils-81ca57a91d18d157c0a1405b98641b8de00a0817.tar.xz
Remove unused "case 0".
Diffstat (limited to 'src')
-rw-r--r--src/cat.c3
-rw-r--r--src/chgrp.c3
-rw-r--r--src/chmod.c2
-rw-r--r--src/chown.c3
-rw-r--r--src/comm.c3
-rw-r--r--src/cp.c3
-rw-r--r--src/csplit.c3
-rw-r--r--src/cut.c3
-rw-r--r--src/date.c2
-rw-r--r--src/df.c2
-rw-r--r--src/env.c2
-rw-r--r--src/expand.c3
-rw-r--r--src/fold.c3
-rw-r--r--src/head.c3
-rw-r--r--src/id.c2
-rw-r--r--src/install.c3
-rw-r--r--src/join.c3
-rw-r--r--src/ln.c3
-rw-r--r--src/ls.c3
-rw-r--r--src/mkdir.c2
-rw-r--r--src/mkfifo.c2
-rw-r--r--src/mknod.c2
-rw-r--r--src/mv.c3
-rw-r--r--src/nl.c3
-rw-r--r--src/paste.c3
-rw-r--r--src/pinky.c3
-rw-r--r--src/pr.c3
-rw-r--r--src/ptx.c3
-rw-r--r--src/rmdir.c2
-rw-r--r--src/seq.c3
-rw-r--r--src/shred.c3
-rw-r--r--src/sum.c3
-rw-r--r--src/tac.c2
-rw-r--r--src/tail.c3
-rw-r--r--src/tee.c3
-rw-r--r--src/touch.c3
-rw-r--r--src/tr.c3
-rw-r--r--src/tty.c3
-rw-r--r--src/uname.c3
-rw-r--r--src/unexpand.c3
-rw-r--r--src/wc.c3
-rw-r--r--src/who.c3
42 files changed, 0 insertions, 116 deletions
diff --git a/src/cat.c b/src/cat.c
index b703e754f..ba86adc5e 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -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;
diff --git a/src/cp.c b/src/cp.c
index 46a0b0c40..9c4562671 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -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;
diff --git a/src/cut.c b/src/cut.c
index 23aed8a32..d3fa9606b 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -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;
diff --git a/src/df.c b/src/df.c
index 470496290..c26144cfe 100644
--- a/src/df.c
+++ b/src/df.c
@@ -781,8 +781,6 @@ main (int argc, char **argv)
{
switch (c)
{
- case 0: /* Long option. */
- break;
case 'a':
show_all_fs = true;
break;
diff --git a/src/env.c b/src/env.c
index e39779ac4..2091da6a1 100644
--- a/src/env.c
+++ b/src/env.c
@@ -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;
diff --git a/src/id.c b/src/id.c
index 4f6159cb1..8218b3d3e 100644
--- a/src/id.c
+++ b/src/id.c
@@ -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. */
diff --git a/src/ln.c b/src/ln.c
index e928c67f8..80b8eb6aa 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -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\
diff --git a/src/ls.c b/src/ls.c
index 1eca84038..f248ff7d9 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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;
diff --git a/src/mv.c b/src/mv.c
index 9a7acd65c..f5c3e0359 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -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\
diff --git a/src/nl.c b/src/nl.c
index 137e98da9..4ff2b764b 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -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;
diff --git a/src/pr.c b/src/pr.c
index 07baa5e00..0762608d5 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -888,9 +888,6 @@ main (int argc, char **argv)
switch (c)
{
- case 0: /* getopt long option */
- break;
-
case 1: /* Non-option argument. */
if (*optarg == '+')
{
diff --git a/src/ptx.c b/src/ptx.c
index be1d0bfc6..70b9fa66e 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -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;
diff --git a/src/seq.c b/src/seq.c
index 37def1b1f..76235ea03 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -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;
diff --git a/src/sum.c b/src/sum.c
index 6a3173572..f2c4a2be7 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -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;
diff --git a/src/tac.c b/src/tac.c
index bfdce3e37..f6fba0c18 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -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;
diff --git a/src/tee.c b/src/tee.c
index ccd74da78..3639366b2 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -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;
diff --git a/src/tr.c b/src/tr.c
index cfa611163..b26e81df7 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -1685,9 +1685,6 @@ main (int argc, char **argv)
{
switch (c)
{
- case 0:
- break;
-
case 'c':
case 'C':
complement = true;
diff --git a/src/tty.c b/src/tty.c
index 430f55b6b..13cca82d5 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -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':
diff --git a/src/wc.c b/src/wc.c
index 5f8bb94e2..ed65a11c5 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -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;
diff --git a/src/who.c b/src/who.c
index 96524cedb..714ac2840 100644
--- a/src/who.c
+++ b/src/who.c
@@ -703,9 +703,6 @@ main (int argc, char **argv)
{
switch (optc)
{
- case 0:
- break;
-
case 'a':
need_boottime = true;
need_deadprocs = true;