diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-21 22:09:09 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-21 22:09:09 +0000 |
commit | 4ef2590268d742366747e3d9e1e2042bad79d323 (patch) | |
tree | fce3876fee4f342c290e9d17bdaf6d4a795dad52 /src/logname.c | |
parent | 3456364b8c7674b27abbc2afdfdcf533084d3499 (diff) | |
download | coreutils-4ef2590268d742366747e3d9e1e2042bad79d323.tar.xz |
Remove now-unused long-options static var.
(main): Use getopt where it suffices, not getopt_long.
Diffstat (limited to 'src/logname.c')
-rw-r--r-- | src/logname.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/logname.c b/src/logname.c index e1201b1fb..005a7a43e 100644 --- a/src/logname.c +++ b/src/logname.c @@ -33,11 +33,6 @@ /* The name this program was run with. */ char *program_name; -static struct option const long_options[] = -{ - {0, 0, 0, 0} -}; - void usage (int status) { @@ -74,18 +69,8 @@ main (int argc, char **argv) parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, usage, AUTHORS, (char const *) NULL); - - while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1) - { - switch (c) - { - case 0: - break; - - default: - usage (EXIT_FAILURE); - } - } + if (getopt (argc, argv, "") != -1) + usage (EXIT_FAILURE); if (optind < argc) { |