From: Todd C. Miller Date: Thu, 23 Mar 2000 19:14:03 +0000 (+0000) Subject: Add #ifdef __STDC__ around the rangematch function header to avoid X-Git-Tag: SUDO_1_6_3~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ffc5a9fae56548cf267335be266ab87c77f8739;p=sudo Add #ifdef __STDC__ around the rangematch function header to avoid promotion of test to int, thus violating the prototype. Gcc handles this gracefully but more std ANSI compilers will complain. --- diff --git a/fnmatch.c b/fnmatch.c index 1238f1bad..ffbdda949 100644 --- a/fnmatch.c +++ b/fnmatch.c @@ -169,11 +169,15 @@ fnmatch(pattern, string, flags) } static int +#ifdef __STDC__ +rangematch(const char *pattern, char test, int flags, char **newp) +#else rangematch(pattern, test, flags, newp) const char *pattern; char test; int flags; char **newp; +#endif { int negate, ok; char c, c2;