]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
got rid of interpret_security(). Thanks to Jean-Francois for pointing
authorAndrew Tridgell <tridge@samba.org>
Sat, 5 Sep 1998 01:12:07 +0000 (01:12 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 5 Sep 1998 01:12:07 +0000 (01:12 +0000)
out it is no longer used (replaced by enumerated types in loadparm.c)

source/include/proto.h
source/lib/util.c

index 7313fef8f83abdf541c8085f629e375372e1dd5e..7ef9cbb67758dc24d914a5f530b88808357167e9 100644 (file)
@@ -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);
index 260435d9e8e17099ff7e1ba51776a24e0e9e6be9..8432071d809aaab87a22f336872b17134680dc6c 100644 (file)
@@ -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