Doesn't need a "-" option -- getopt does that for us.
authorEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 18:57:08 +0000 (18:57 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 19 Mar 2001 18:57:08 +0000 (18:57 -0000)
coreutils/rm.c
rm.c

index 013f3ee5d9c9ae092b3345c7cce90c83c4b53299..a5b2ef42034f18f674a242df62ea4a29a3ca4c6b 100644 (file)
@@ -85,7 +85,6 @@ extern int rm_main(int argc, char **argv)
 {
        int opt;
        int status = EXIT_SUCCESS;
-       int stopIt=FALSE;
        struct stat statbuf;
        
        
@@ -108,9 +107,6 @@ extern int rm_main(int argc, char **argv)
                                interactiveFlag = TRUE;
 #endif
                                break;
-                       case '-':
-                               stopIt = TRUE;
-                               break;
                        default:
                                show_usage();
                }
diff --git a/rm.c b/rm.c
index 013f3ee5d9c9ae092b3345c7cce90c83c4b53299..a5b2ef42034f18f674a242df62ea4a29a3ca4c6b 100644 (file)
--- a/rm.c
+++ b/rm.c
@@ -85,7 +85,6 @@ extern int rm_main(int argc, char **argv)
 {
        int opt;
        int status = EXIT_SUCCESS;
-       int stopIt=FALSE;
        struct stat statbuf;
        
        
@@ -108,9 +107,6 @@ extern int rm_main(int argc, char **argv)
                                interactiveFlag = TRUE;
 #endif
                                break;
-                       case '-':
-                               stopIt = TRUE;
-                               break;
                        default:
                                show_usage();
                }