From f7860d6172f8e5d6adacc49736924a4e8775881a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 4 Aug 1995 15:09:12 +0000 Subject: [PATCH] . --- lib/getopt.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/getopt.c b/lib/getopt.c index 3cdb1f2..1af2a96 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -490,6 +490,10 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) for (nameend = nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; +#ifdef lint + indfound = 0; /* Avoid spurious compiler warning. */ +#endif + /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) @@ -510,13 +514,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) indfound = option_index; } else - { - /* Second or later nonexact match found. */ - ambig = 1; -#ifdef lint - indfound = 0; -#define - } + /* Second or later nonexact match found. */ + ambig = 1; } if (ambig && !exact) -- 2.7.4