mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
Doesn't need a "-" option -- getopt does that for us.
This commit is contained in:
parent
16f7015722
commit
00b0496e69
@ -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
4
rm.c
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user