diff options
author | David Cole <david.cole@kitware.com> | 2006-05-23 16:38:22 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2006-05-23 16:38:22 (GMT) |
commit | 13a68cd97888d451d9f40b61891709af1648432b (patch) | |
tree | 8cf57a71bc01c1890e8f56ffecb3a85d208ceafe /Utilities/cmtar/compat | |
parent | 35334d01cdf533262c1fad9bfcd7794afaaf6d09 (diff) | |
download | CMake-13a68cd97888d451d9f40b61891709af1648432b.zip CMake-13a68cd97888d451d9f40b61891709af1648432b.tar.gz CMake-13a68cd97888d451d9f40b61891709af1648432b.tar.bz2 |
COMP: Fix warnings on Borland dashboards...
Diffstat (limited to 'Utilities/cmtar/compat')
-rw-r--r-- | Utilities/cmtar/compat/fnmatch.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Utilities/cmtar/compat/fnmatch.c b/Utilities/cmtar/compat/fnmatch.c index d10e8a3..936f21e 100644 --- a/Utilities/cmtar/compat/fnmatch.c +++ b/Utilities/cmtar/compat/fnmatch.c @@ -70,11 +70,7 @@ static char rcsid[] = "$OpenBSD: fnmatch.c,v 1.6 1998/03/19 00:29:59 millert Exp #define RANGE_NOMATCH 0 #define RANGE_ERROR (-1) -#ifdef NO_IBM_COMPILER_HORKAGE static int rangematch (const char *, char, int, char **); -#else -static int rangematch (); -#endif int fnmatch(pattern, string, flags) @@ -195,7 +191,8 @@ rangematch(pattern, test, flags, newp) * consistency with the regular expression syntax. * J.T. Conklin (conklin@ngai.kaleida.com) */ - if ((negate = (*pattern == '!' || *pattern == '^'))) + negate = (*pattern == '!' || *pattern == '^'); + if (negate) ++pattern; if (flags & FNM_CASEFOLD) |