diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-04 15:15:50 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-04 15:15:50 -0800 |
commit | cbafe17bb37acfb76acf9d9905be1029e274089e (patch) | |
tree | 26e1eb9b867a5564400dce6d3839891c9a9b9d16 /source3/lib | |
parent | 51cb96271b4f9a4bd37b44bdb6042913b60ba3c1 (diff) | |
download | samba-cbafe17bb37acfb76acf9d9905be1029e274089e.tar.gz samba-cbafe17bb37acfb76acf9d9905be1029e274089e.tar.bz2 samba-cbafe17bb37acfb76acf9d9905be1029e274089e.zip |
Remove "Protocol" as an extern, and add accessor functions.
Jeremy.
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 12 |
1 files changed, 11 insertions, 1 deletions
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; |