- while (1) {
- int option_index = 0;
- static struct option long_options[] = {
- { "help", no_argument, 0, 'h' },
- { "same-inodes-are-different", no_argument, 0, 'i' },
- { "real-paths", no_argument, 0, 'r' },
- { "hide-matchings", no_argument, 0, 'c' },
- { "no-group-ids", no_argument, 0, 'g' },
- { "ignore-dots", no_argument, 0, 'd' },
- { "ignore-empty", no_argument, 0, '0' },
- { "show-progress", no_argument, 0, 'p' },
- { 0, 0, 0, 0 }
- };
-
- c = getopt_long(argc, argv, "hircgd0p",
- long_options, &option_index);
- if (c == -1)
- break;
-
+ while ((c = getopt_long(argc, argv, "hircgd0p",
+ long_options, NULL)) != -1) {