summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-05 01:12:07 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-05 01:12:07 +0000
commit88df8a8b25921389ee9d017b770bbae143cc51b8 (patch)
treeb2b7f1c2c1d8f371cfd422b233a3347314d807ab
parent5910d07bbf45a34d3c901461f74704c029a79474 (diff)
downloadsamba-88df8a8b25921389ee9d017b770bbae143cc51b8.tar.gz
got rid of interpret_security(). Thanks to Jean-Francois for pointing
out it is no longer used (replaced by enumerated types in loadparm.c)
-rw-r--r--source/include/proto.h1
-rw-r--r--source/lib/util.c17
2 files changed, 0 insertions, 18 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 7313fef8f83..7ef9cbb6775 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -315,7 +315,6 @@ BOOL ip_equal(struct in_addr ip1,struct in_addr ip2);
int open_socket_in(int type, int port, int dlevel,uint32 socket_addr);
int open_socket_out(int type, struct in_addr *addr, int port ,int timeout);
int interpret_protocol(char *str,int def);
-int interpret_security(char *str,int def);
uint32 interpret_addr(char *str);
struct in_addr *interpret_addr2(char *str);
BOOL zero_ip(struct in_addr ip);
diff --git a/source/lib/util.c b/source/lib/util.c
index 260435d9e8e..8432071d809 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -3599,23 +3599,6 @@ int interpret_protocol(char *str,int def)
return(def);
}
-/****************************************************************************
-interpret a security level
-****************************************************************************/
-int interpret_security(char *str,int def)
-{
- if (strequal(str,"SERVER"))
- return(SEC_SERVER);
- if (strequal(str,"USER"))
- return(SEC_USER);
- if (strequal(str,"SHARE"))
- return(SEC_SHARE);
-
- DEBUG(0,("Unrecognised security level %s\n",str));
-
- return(def);
-}
-
/****************************************************************************
interpret an internet address or name into an IP address in 4 byte form