summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-04 21:20:57 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-06 08:50:52 +0200
commit8aae59a277fe4bf5a1a84cb4730e5772c9ffca8c (patch)
tree34e978b29383df66b98f7315563b917c31448ca1 /lib/util
parente3b858496ffe213f66387e4f11b311543af4dc54 (diff)
downloadsamba-8aae59a277fe4bf5a1a84cb4730e5772c9ffca8c.tar.gz
samba-8aae59a277fe4bf5a1a84cb4730e5772c9ffca8c.tar.bz2
samba-8aae59a277fe4bf5a1a84cb4730e5772c9ffca8c.zip
lib/util don't use enum protocol_types in ms_fnmatch_protocol
This makes it easier to compile this in the top level with s3 and s4 headers. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri May 6 08:50:52 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/util')
-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);