From 4ef2590268d742366747e3d9e1e2042bad79d323 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 21 Sep 2004 22:09:09 +0000 Subject: Remove now-unused long-options static var. (main): Use getopt where it suffices, not getopt_long. --- src/sleep.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/sleep.c') diff --git a/src/sleep.c b/src/sleep.c index aa766ee33..d327285c8 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -36,11 +36,6 @@ /* The name by which this program was run. */ char *program_name; -static struct option const long_options[] = -{ - {0, 0, 0, 0} -}; - void usage (int status) { @@ -119,18 +114,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 (argc == 1) { -- cgit v1.2.3-54-g00ecf