Mercurial > hg > octave-nkf > gnulib-hg
changeset 471:7ea6df68b1a1
.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 04 Aug 1995 15:09:12 +0000 |
parents | 2f0e769e20a6 |
children | 04333b573d1b |
files | lib/getopt.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getopt.c +++ b/lib/getopt.c @@ -490,6 +490,10 @@ 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 @@ 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)