From 8aae59a277fe4bf5a1a84cb4730e5772c9ffca8c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 May 2011 21:20:57 +1000 Subject: 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 Autobuild-Date: Fri May 6 08:50:52 CEST 2011 on sn-devel-104 --- lib/util/ms_fnmatch.c | 2 +- lib/util/util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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); -- cgit