From: Paul Eggert Date: Tue, 21 Sep 2004 22:09:52 +0000 (+0000) Subject: (main): Remove unused "case 0". X-Git-Tag: v5.3.0~654 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31bf55d54ceb265fb06fc6cfc0dab130907295fc;p=thirdparty%2Fcoreutils.git (main): Remove unused "case 0". (long_options): Standardize on NULL vs 0. --- diff --git a/src/du.c b/src/du.c index a3a368ad21..5fd3483fa6 100644 --- a/src/du.c +++ b/src/du.c @@ -132,16 +132,16 @@ static struct option const long_options[] = { {"all", no_argument, NULL, 'a'}, {"apparent-size", no_argument, NULL, APPARENT_SIZE_OPTION}, - {"block-size", required_argument, 0, 'B'}, + {"block-size", required_argument, NULL, 'B'}, {"bytes", no_argument, NULL, 'b'}, {"count-links", no_argument, NULL, 'l'}, {"dereference", no_argument, NULL, 'L'}, {"dereference-args", no_argument, NULL, 'D'}, - {"exclude", required_argument, 0, EXCLUDE_OPTION}, - {"exclude-from", required_argument, 0, 'X'}, - {"files0-from", required_argument, 0, FILES0_FROM_OPTION}, + {"exclude", required_argument, NULL, EXCLUDE_OPTION}, + {"exclude-from", required_argument, NULL, 'X'}, + {"files0-from", required_argument, NULL, FILES0_FROM_OPTION}, {"human-readable", no_argument, NULL, 'h'}, - {"si", no_argument, 0, HUMAN_SI_OPTION}, + {"si", no_argument, NULL, HUMAN_SI_OPTION}, {"kilobytes", no_argument, NULL, 'k'}, /* long form is obsolescent */ {"max-depth", required_argument, NULL, MAX_DEPTH_OPTION}, {"null", no_argument, NULL, '0'}, @@ -562,9 +562,6 @@ main (int argc, char **argv) { switch (c) { - case 0: /* Long option. */ - break; - #if DU_DEBUG case 'd': fts_debug = true;