summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-11 13:11:41 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:05 +0200
commit9188ee4ab195a18b1bd697bced8613f98a6a91d9 (patch)
tree570802080082137003cd3847e7a259ba60d66b02 /source3
parent2c3c8caa0cc7b085231b2edc100ce2332e1e0085 (diff)
downloadsamba-9188ee4ab195a18b1bd697bced8613f98a6a91d9.tar.gz
samba-9188ee4ab195a18b1bd697bced8613f98a6a91d9.tar.bz2
samba-9188ee4ab195a18b1bd697bced8613f98a6a91d9.zip
s3:lib: remove unused interpret_protocol()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/util.c25
2 files changed, 0 insertions, 26 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 01e57275b7..078d0398d5 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -401,7 +401,6 @@ void add_to_large_array(TALLOC_CTX *mem_ctx, size_t element_size,
ssize_t *array_size);
char *get_myname(TALLOC_CTX *ctx);
char *get_mydnsdomname(TALLOC_CTX *ctx);
-int interpret_protocol(const char *str,int def);
char *automount_lookup(TALLOC_CTX *ctx, const char *user_name);
char *automount_lookup(TALLOC_CTX *ctx, const char *user_name);
bool process_exists(const struct server_id pid);
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 93aab3c2ad..bf6c8c5302 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -559,31 +559,6 @@ char *get_mydnsdomname(TALLOC_CTX *ctx)
}
}
-/****************************************************************************
- Interpret a protocol description string, with a default.
-****************************************************************************/
-
-int interpret_protocol(const char *str,int def)
-{
- if (strequal(str,"NT1"))
- return(PROTOCOL_NT1);
- if (strequal(str,"LANMAN2"))
- return(PROTOCOL_LANMAN2);
- if (strequal(str,"LANMAN1"))
- return(PROTOCOL_LANMAN1);
- if (strequal(str,"CORE"))
- return(PROTOCOL_CORE);
- if (strequal(str,"COREPLUS"))
- return(PROTOCOL_COREPLUS);
- if (strequal(str,"CORE+"))
- return(PROTOCOL_COREPLUS);
-
- DEBUG(0,("Unrecognised protocol level %s\n",str));
-
- return(def);
-}
-
-
#if (defined(HAVE_NETGROUP) && defined(WITH_AUTOMOUNT))
/******************************************************************
Remove any mount options such as -rsize=2048,wsize=2048 etc.