smbd: Remove get_Protocol()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Feb 2024 12:13:26 +0000 (13:13 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 12 Mar 2024 13:31:31 +0000 (13:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/include/proto.h
source3/lib/util.c

index e9e13f671733cfcc5b945299712ac5e35a0af214..ed45485e65470d1f7b9bce5f5269db3a611ed982 100644 (file)
@@ -277,7 +277,6 @@ bool is_allowed_domain(const char *domain_name);
 
 /* The following definitions come from lib/util.c  */
 
-enum protocol_types get_Protocol(void);
 void set_Protocol(enum protocol_types  p);
 void gfree_all( void );
 bool file_exist_stat(const char *fname,SMB_STRUCT_STAT *sbuf,
index 51dc50d0b66e54df6de75d9efc8113bfd9da6edf..b840221f41a7c4b685f9a08dc49c4a9bd8e21523 100644 (file)
 
 static enum protocol_types Protocol = PROTOCOL_COREPLUS;
 
-enum protocol_types get_Protocol(void)
-{
-       return Protocol;
-}
-
 void set_Protocol(enum protocol_types  p)
 {
        Protocol = p;