From 1e3300d840fd1475827111d99133d76ec967a0c4 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 6 Jul 2011 01:44:15 +0200 Subject: [PATCH] fnmatch: Fix compilation under Windows --- src/win32/fnmatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/fnmatch.c b/src/win32/fnmatch.c index 078993720..de2f3e74f 100644 --- a/src/win32/fnmatch.c +++ b/src/win32/fnmatch.c @@ -100,7 +100,7 @@ p_fnmatch(const char *pattern, const char *string, int flags) /* General case, use recursion. */ while ((test = *string) != EOS) { - if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) + if (!p_fnmatch(pattern, string, flags & ~FNM_PERIOD)) return (0); if (test == '/' && (flags & FNM_PATHNAME)) break; @@ -162,7 +162,7 @@ rangematch(const char *pattern, char test, int flags, char **newp) * consistency with the regular expression syntax. * J.T. Conklin (conklin@ngai.kaleida.com) */ - if ((negate = (*pattern == '!' || *pattern == '^'))) + if ((negate = (*pattern == '!' || *pattern == '^')) != 0) ++pattern; if (flags & FNM_CASEFOLD)