From: Eric Andersen Date: Mon, 19 Mar 2001 19:40:43 +0000 (-0000) Subject: Simpify detection of no options. X-Git-Tag: 0_51~111 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8269396491913ab551b558756f6581a4d12bd00f;p=oweals%2Fbusybox.git Simpify detection of no options. --- diff --git a/coreutils/rm.c b/coreutils/rm.c index a3542aaf6..768e3ca64 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c @@ -112,7 +112,7 @@ extern int rm_main(int argc, char **argv) } } - if ((argc-optind) < 1 && forceFlag == FALSE) { + if (argc == optind && forceFlag == FALSE) { show_usage(); } #ifdef BB_FEATURE_RM_INTERACTIVE diff --git a/rm.c b/rm.c index a3542aaf6..768e3ca64 100644 --- a/rm.c +++ b/rm.c @@ -112,7 +112,7 @@ extern int rm_main(int argc, char **argv) } } - if ((argc-optind) < 1 && forceFlag == FALSE) { + if (argc == optind && forceFlag == FALSE) { show_usage(); } #ifdef BB_FEATURE_RM_INTERACTIVE