From: Paul Eggert Date: Tue, 21 Sep 2004 22:10:39 +0000 (+0000) Subject: Remove unused "case 0". X-Git-Tag: v5.3.0~653 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca316df53ceaf37dce92fdb0c2c156534dc0fce3;p=thirdparty%2Fcoreutils.git Remove unused "case 0". (long_opts): Standardize on NULL vs 0. --- diff --git a/src/rm.c b/src/rm.c index 99136b61dd..e3933a5d6a 100644 --- a/src/rm.c +++ b/src/rm.c @@ -79,8 +79,8 @@ static struct option const long_opts[] = {"force", no_argument, NULL, 'f'}, {"interactive", no_argument, NULL, 'i'}, - {"no-preserve-root", no_argument, 0, NO_PRESERVE_ROOT}, - {"preserve-root", no_argument, 0, PRESERVE_ROOT}, + {"no-preserve-root", no_argument, NULL, NO_PRESERVE_ROOT}, + {"preserve-root", no_argument, NULL, PRESERVE_ROOT}, /* This is solely for testing. Do not document. */ /* It is relatively difficult to ensure that there is a tty on stdin. @@ -179,9 +179,6 @@ main (int argc, char **argv) { switch (c) { - case 0: /* Long option. */ - break; - case 'd': x.unlink_dirs = true; break;