diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-03-23 19:13:52 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-03-23 19:13:52 +0000 |
commit | 02a7ab630bd2e9d836aa82e5bfedc7dafc9a83a2 (patch) | |
tree | ee63cd276ec86e225a9cae10aa41f6db8d412a50 /lib | |
parent | 84d2a1c7083d4c88b0634e58e1520e91f44dcabc (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/fnmatch.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/gen/fnmatch.c b/lib/libc/gen/fnmatch.c index acb6047b7fd..3424488af79 100644 --- a/lib/libc/gen/fnmatch.c +++ b/lib/libc/gen/fnmatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fnmatch.c,v 1.6 1998/03/19 00:29:59 millert Exp $ */ +/* $OpenBSD: fnmatch.c,v 1.7 2000/03/23 19:13:51 millert Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94"; #else -static char rcsid[] = "$OpenBSD: fnmatch.c,v 1.6 1998/03/19 00:29:59 millert Exp $"; +static char rcsid[] = "$OpenBSD: fnmatch.c,v 1.7 2000/03/23 19:13:51 millert Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -165,11 +165,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 *pattern; char test; int flags; char **newp; +#endif { int negate, ok; char c, c2; |