From cbafe17bb37acfb76acf9d9905be1029e274089e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 4 Nov 2009 15:15:50 -0800 Subject: Remove "Protocol" as an extern, and add accessor functions. Jeremy. --- source3/lib/util.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index b066a0d346..247042d7d9 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -55,7 +55,17 @@ extern unsigned int global_clobber_region_line; #endif /* WITH_NISPLUS_HOME */ #endif /* HAVE_NETGROUP && WITH_AUTOMOUNT */ -enum protocol_types Protocol = PROTOCOL_COREPLUS; +static enum protocol_types Protocol = PROTOCOL_COREPLUS; + +enum protocol_types get_Protocol(void) +{ + return Protocol; +} + +void set_Protocol(enum protocol_types p) +{ + Protocol = p; +} static enum remote_arch_types ra_type = RA_UNKNOWN; -- cgit