wildmatch: rename constants and update prototype
[gitweb.git] / dir.c
diff --git a/dir.c b/dir.c
index cb7328b548a2eaf6ab1490354b9e9b6a560d327d..175a1827ba90966bbaa19931ef6e193762d4c7c6 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -595,7 +595,8 @@ int match_pathname(const char *pathname, int pathlen,
        }
 
        return wildmatch(pattern, name,
-                        ignore_case ? FNM_CASEFOLD : 0) == 0;
+                        ignore_case ? WM_CASEFOLD : 0,
+                        NULL) == 0;
 }
 
 /* Scan the list and let the last match determine the fate.