Remove unused "case 0".
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Sep 2004 22:26:42 +0000 (22:26 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Sep 2004 22:26:42 +0000 (22:26 +0000)
42 files changed:
src/cat.c
src/chgrp.c
src/chmod.c
src/chown.c
src/comm.c
src/cp.c
src/csplit.c
src/cut.c
src/date.c
src/df.c
src/env.c
src/expand.c
src/fold.c
src/head.c
src/id.c
src/install.c
src/join.c
src/ln.c
src/ls.c
src/mkdir.c
src/mkfifo.c
src/mknod.c
src/mv.c
src/nl.c
src/paste.c
src/pinky.c
src/pr.c
src/ptx.c
src/rmdir.c
src/seq.c
src/shred.c
src/sum.c
src/tac.c
src/tail.c
src/tee.c
src/touch.c
src/tr.c
src/tty.c
src/uname.c
src/unexpand.c
src/wc.c
src/who.c

index b703e75..ba86adc 100644 (file)
--- 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;
index 2892434..824f40e 100644 (file)
@@ -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;
index 3694327..884669d 100644 (file)
@@ -365,8 +365,6 @@ main (int argc, char **argv)
 
       switch (c)
        {
-       case 0:
-         break;
        case 'r':
        case 'w':
        case 'x':
index 785f941..11a44f5 100644 (file)
@@ -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;
index 96b59ea..972aefb 100644 (file)
@@ -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;
index 46a0b0c..9c45626 100644 (file)
--- 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);
index b3b1d19..dd29ea5 100644 (file)
@@ -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;
index 23aed8a..d3fa960 100644 (file)
--- 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. */
index 87a97c2..2c79a08 100644 (file)
@@ -313,8 +313,6 @@ main (int argc, char **argv)
         != -1)
     switch (optc)
       {
-      case 0:
-       break;
       case 'd':
        datestr = optarg;
        break;
index 4704962..c26144c 100644 (file)
--- 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;
index e39779a..2091da6 100644 (file)
--- 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;
index 7b4db1a..7b7ecac 100644 (file)
@@ -398,9 +398,6 @@ main (int argc, char **argv)
     {
       switch (c)
        {
-       case 0:
-         break;
-
        case '?':
          usage (EXIT_FAILURE);
        case 'i':
index 8e343e7..f6fce6a 100644 (file)
@@ -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;
index 0aa59ba..cdc21d6 100644 (file)
@@ -1027,9 +1027,6 @@ main (int argc, char **argv)
     {
       switch (c)
        {
-       case 0:
-         break;
-
        case PRESUME_INPUT_PIPE_OPTION:
          presume_input_pipe = true;
          break;
index 4f6159c..8218b3d 100644 (file)
--- 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;
index b248454..880c667 100644 (file)
@@ -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\
index 3b2383e..b919112 100644 (file)
@@ -768,9 +768,6 @@ main (int argc, char **argv)
 
       switch (optc)
        {
-       case 0:
-         break;
-
        case 'v':
            print_pairables = false;
            /* Fall through.  */
index e928c67..80b8eb6 100644 (file)
--- 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\
index 1eca840..f248ff7 100644 (file)
--- 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;
index a3288e7..e52ac9c 100644 (file)
@@ -102,8 +102,6 @@ main (int argc, char **argv)
     {
       switch (optc)
        {
-       case 0:                 /* Long option. */
-         break;
        case 'p':
          create_parents = true;
          break;
index 91edb19..c11ab60 100644 (file)
@@ -97,8 +97,6 @@ main (int argc, char **argv)
     {
       switch (optc)
        {
-       case 0:
-         break;
        case 'm':
          specified_mode = optarg;
          break;
index 78d8744..e643523 100644 (file)
@@ -108,8 +108,6 @@ main (int argc, char **argv)
     {
       switch (optc)
        {
-       case 0:
-         break;
        case 'm':
          specified_mode = optarg;
          break;
index 9a7acd6..f5c3e03 100644 (file)
--- 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\
index 137e98d..4ff2b76 100644 (file)
--- 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))
            {
index bc1b3e4..9692cb3 100644 (file)
@@ -460,9 +460,6 @@ main (int argc, char **argv)
     {
       switch (optc)
        {
-       case 0:
-         break;
-
        case 'd':
          /* Delimiter character(s). */
          if (optarg[0] == '\0')
index 8f888c9..2e97fc8 100644 (file)
@@ -558,9 +558,6 @@ main (int argc, char **argv)
     {
       switch (optc)
        {
-       case 0:
-         break;
-
        case 's':
          do_short_format = true;
          break;
index 07baa5e..0762608 100644 (file)
--- 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 == '+')
            {
index be1d0bf..70b9fa6 100644 (file)
--- 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\
index b919e6b..8facbdd 100644 (file)
@@ -185,8 +185,6 @@ main (int argc, char **argv)
     {
       switch (optc)
        {
-       case 0:                 /* Long option. */
-         break;
        case 'p':
          empty_paths = true;
          break;
index 37def1b..76235ea 100644 (file)
--- 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;
index 7680192..19bdbb4 100644 (file)
@@ -1603,9 +1603,6 @@ main (int argc, char **argv)
     {
       switch (c)
        {
-       case 0:
-         break;
-
        case 'f':
          flags.force = true;
          break;
index 6a31735..f2c4a2b 100644 (file)
--- 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;
index bfdce3e..f6fba0c 100644 (file)
--- 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;
index 53ea0dd..c7cd58c 100644 (file)
@@ -1478,9 +1478,6 @@ parse_options (int argc, char **argv,
     {
       switch (c)
        {
-       case 0:
-         break;
-
        case 'F':
          forever = true;
          follow_mode = Follow_name;
index ccd74da..3639366 100644 (file)
--- 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;
index c3575f7..ea0759b 100644 (file)
@@ -282,9 +282,6 @@ main (int argc, char **argv)
     {
       switch (c)
        {
-       case 0:
-         break;
-
        case 'a':
          change_times |= CH_ATIME;
          break;
index cfa6111..b26e81d 100644 (file)
--- 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;
index 430f55b..13cca82 100644 (file)
--- 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;
index 9e7026a..8380a63 100644 (file)
@@ -166,9 +166,6 @@ main (int argc, char **argv)
     {
       switch (c)
        {
-       case 0:
-         break;
-
        case 'a':
          toprint = -1;
          break;
index 42fdb8f..60321d4 100644 (file)
@@ -492,9 +492,6 @@ main (int argc, char **argv)
     {
       switch (c)
        {
-       case 0:
-         break;
-
        case '?':
          usage (EXIT_FAILURE);
        case 'a':
index 5f8bb94..ed65a11 100644 (file)
--- 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;
index 96524ce..714ac28 100644 (file)
--- 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;