summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/ms_fnmatch.c2
-rw-r--r--lib/util/util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/ms_fnmatch.c b/lib/util/ms_fnmatch.c
index d029fd6b00..1ba5888ca0 100644
--- a/lib/util/ms_fnmatch.c
+++ b/lib/util/ms_fnmatch.c
@@ -154,7 +154,7 @@ static int ms_fnmatch_core(const char *p, const char *n,
return -1;
}
-int ms_fnmatch_protocol(const char *pattern, const char *string, enum protocol_types protocol)
+int ms_fnmatch_protocol(const char *pattern, const char *string, int protocol)
{
int ret, count, i;
struct max_n *max_n = NULL;
diff --git a/lib/util/util.h b/lib/util/util.h
index b91b2eb1fa..93b181b1fc 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -779,7 +779,7 @@ enum protocol_types {
#endif
-int ms_fnmatch_protocol(const char *pattern, const char *string, enum protocol_types protocol);
+int ms_fnmatch_protocol(const char *pattern, const char *string, int protocol);
/** a generic fnmatch function - uses for non-CIFS pattern matching */
int gen_fnmatch(const char *pattern, const char *string);