(longopts): Use corresponding short-option character
authorJim Meyering <jim@meyering.net>
Sun, 30 Aug 1998 03:00:13 +0000 (03:00 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Aug 1998 03:00:13 +0000 (03:00 +0000)
in place of `1', and `NULL' in place of pointer in initialization.

src/rmdir.c

index f50849c..e5a3977 100644 (file)
@@ -64,7 +64,7 @@ static struct option const longopts[] =
 {
   /* Don't name this `--force' because it's not close enough in meaning
      to e.g. rm's -f option.  */
-  {"ignore-fail-on-non-empty", no_argument, NULL, 13},
+  {"ignore-fail-on-non-empty", no_argument, NULL, CHAR_MAX + 1},
 
   {"path", no_argument, NULL, 'p'},
   {"parents", no_argument, NULL, 'p'},
@@ -163,7 +163,7 @@ main (int argc, char **argv)
        case 'p':
          empty_paths = 1;
          break;
-       case 13:
+       case CHAR_MAX + 1:
          ignore_fail_on_non_empty = 1;
          break;
        case 14: