X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/5de45bcadc3182a5e9b5720ce63285995bf64a2f..88085892776b5b99f3f4a427870d79f896c83622:/wildtest.c diff --git a/wildtest.c b/wildtest.c index d279fc54..53a39331 100644 --- a/wildtest.c +++ b/wildtest.c @@ -3,8 +3,9 @@ */ #include "rsync.h" +#include "lib/wildmatch.h" -#define COMPARE_WITH_FNMATCH +/*#define COMPARE_WITH_FNMATCH*/ #ifdef COMPARE_WITH_FNMATCH #include @@ -23,6 +24,8 @@ beg(int n, const char *text, const char *pattern, bool matches, bool same_as_fnm #ifdef COMPARE_WITH_FNMATCH bool fn_matched; int flags = strstr(pattern, "**")? 0 : FNM_PATHNAME; +#else + same_as_fnmatch = 0; /* Get rid of unused-variable compiler warning. */ #endif matched = wildmatch(pattern, text); @@ -49,6 +52,8 @@ end(int n, const char *text, const char *pattern, bool matches, bool same_as_fnm #ifdef COMPARE_WITH_FNMATCH bool fn_matched = false; int flags = strstr(pattern, "**")? 0 : FNM_PATHNAME; +#else + same_as_fnmatch = 0; /* Get rid of unused-variable compiler warning. */ #endif if (strncmp(pattern, "**", 2) == 0) {