Doesn't need a "-" option -- getopt does that for us.

This commit is contained in:
Eric Andersen 2001-03-19 18:57:08 +00:00
parent 16f7015722
commit 00b0496e69
2 changed files with 0 additions and 8 deletions

View File

@ -85,7 +85,6 @@ extern int rm_main(int argc, char **argv)
{ {
int opt; int opt;
int status = EXIT_SUCCESS; int status = EXIT_SUCCESS;
int stopIt=FALSE;
struct stat statbuf; struct stat statbuf;
@ -108,9 +107,6 @@ extern int rm_main(int argc, char **argv)
interactiveFlag = TRUE; interactiveFlag = TRUE;
#endif #endif
break; break;
case '-':
stopIt = TRUE;
break;
default: default:
show_usage(); show_usage();
} }

4
rm.c
View File

@ -85,7 +85,6 @@ extern int rm_main(int argc, char **argv)
{ {
int opt; int opt;
int status = EXIT_SUCCESS; int status = EXIT_SUCCESS;
int stopIt=FALSE;
struct stat statbuf; struct stat statbuf;
@ -108,9 +107,6 @@ extern int rm_main(int argc, char **argv)
interactiveFlag = TRUE; interactiveFlag = TRUE;
#endif #endif
break; break;
case '-':
stopIt = TRUE;
break;
default: default:
show_usage(); show_usage();
} }