diff options
author | pst <pst@FreeBSD.org> | 1996-02-18 19:54:04 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-02-18 19:54:04 +0000 |
commit | 141e27dacba4414767923b23d13021cde699e4b9 (patch) | |
tree | 7619e4e50ae62be865eedc03cc309b2aefadde67 /bin/rm | |
parent | 54cbaa1475270874f2ea2c46f829e6d1d4213a6d (diff) | |
download | FreeBSD-src-141e27dacba4414767923b23d13021cde699e4b9.zip FreeBSD-src-141e27dacba4414767923b23d13021cde699e4b9.tar.gz |
Remove unnecessary '?' case and don't zero global udata, it's already zero
Diffstat (limited to 'bin/rm')
-rw-r--r-- | bin/rm/rm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index d7a5bf7f..f9ce8d1 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: rm.c,v 1.6 1995/04/13 13:35:09 ache Exp $ + * $Id: rm.c,v 1.7 1996/02/18 19:00:59 wosch Exp $ */ #ifndef lint @@ -81,9 +81,9 @@ main(argc, argv) { int ch, rflag; - dflag = fflag = iflag = Pflag = rflag = 0; - stdin_ok = 0; - while ((ch = getopt(argc, argv, "dfiPRr?")) != EOF) + rflag = 0; + + while ((ch = getopt(argc, argv, "dfiPRr")) != EOF) switch(ch) { case 'd': dflag = 1; @@ -103,7 +103,6 @@ main(argc, argv) case 'r': /* Compatibility. */ rflag = 1; break; - case '?': default: usage(); } |