X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fargmatch.c;h=d632890a465596c22a8566fc6602d8b03b4ab52a;hb=6aae241f16ed2dbe57475cb4c8b3a5b1ca1e9699;hp=f3f1a50d229c7b6472d11c8a5a19c43e9cf14527;hpb=d87c39464604e74f580c7fae835be31a4c125c36;p=gnulib.git diff --git a/lib/argmatch.c b/lib/argmatch.c index f3f1a50d2..d632890a4 100644 --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -17,6 +17,12 @@ /* Written by David MacKenzie */ +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + #include #ifdef STDC_HEADERS #include @@ -35,12 +41,12 @@ argmatch (arg, optlist) char **optlist; { int i; /* Temporary index in OPTLIST. */ - int arglen; /* Length of ARG. */ + size_t arglen; /* Length of ARG. */ int matchind = -1; /* Index of first nonexact match. */ int ambiguous = 0; /* If nonzero, multiple nonexact match(es). */ - + arglen = strlen (arg); - + /* Test all elements for either exact match or abbreviated matches. */ for (i = 0; optlist[i]; i++) {