diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-09-23 14:05:43 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-09-29 08:28:07 +0200 |
commit | ceb26257dd02dc5d4aad06be01e913feade35dac (patch) | |
tree | 6c248788d198a3a683c523a069aed4f170a9baaa /ctdb | |
parent | 8280bc5092242d222e3b169bacd901478d196408 (diff) | |
download | samba-ceb26257dd02dc5d4aad06be01e913feade35dac.tar.gz |
lib/util: Do not duplicate the protocol list, use smb_constants.h
This avoids the two lists getting out of sync, and only applies to a Samba build due to the surrounding #ifdef
Andrew Bartlett
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/lib/util/util.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/ctdb/lib/util/util.h b/ctdb/lib/util/util.h index 33f46bd3d59..c7734d18474 100644 --- a/ctdb/lib/util/util.h +++ b/ctdb/lib/util/util.h @@ -485,17 +485,7 @@ _PUBLIC_ int sys_fsusage(const char *path, uint64_t *dfree, uint64_t *dsize); */ #if _SAMBA_BUILD_ == 4 -/* protocol types. It assumes that higher protocols include lower protocols - as subsets. FIXME: Move to one of the smb-specific headers */ -enum protocol_types { - PROTOCOL_NONE, - PROTOCOL_CORE, - PROTOCOL_COREPLUS, - PROTOCOL_LANMAN1, - PROTOCOL_LANMAN2, - PROTOCOL_NT1, - PROTOCOL_SMB2 -}; +#include "libcli/smb/smb_constants.h" int ms_fnmatch(const char *pattern, const char *string, enum protocol_types protocol); |