diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-07-23 11:38:25 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-07-24 10:46:12 +1000 |
commit | 80d3208830744f02bba5581938c9e27f473d15b9 (patch) | |
tree | 3c9cd3bf57b70a088298770f3342df17e06838de /source3 | |
parent | 9521cd0409add2628352ee5ef888c5a8a90fbb27 (diff) | |
download | samba-80d3208830744f02bba5581938c9e27f473d15b9.tar.gz samba-80d3208830744f02bba5581938c9e27f473d15b9.tar.bz2 samba-80d3208830744f02bba5581938c9e27f473d15b9.zip |
param: Make internal handler for 'server role' common
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 3a21ac4fe8..4396e92007 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -605,7 +605,7 @@ static struct parm_struct parm_table[] = { .label = "server role", .type = P_ENUM, .p_class = P_GLOBAL, - .offset = GLOBAL_VAR(ServerRole), + .offset = GLOBAL_VAR(server_role), .special = NULL, .enum_list = enum_server_role, .flags = FLAG_BASIC | FLAG_ADVANCED, @@ -4747,7 +4747,7 @@ static void init_globals(bool reinit_globals) Globals.PrintcapCacheTime = 750; /* 12.5 minutes */ Globals.ConfigBackend = config_backend; - Globals.ServerRole = ROLE_AUTO; + Globals.server_role = ROLE_AUTO; /* Was 65535 (0xFFFF). 0x4101 matches W2K and causes major speed improvements... */ /* Discovered by 2 days of pain by Don McCall @ HP :-). */ @@ -5057,7 +5057,6 @@ char *lp_ ## fn_name(TALLOC_CTX *ctx,int i) {return(lp_string((ctx), (LP_SNUM_OK static FN_GLOBAL_BOOL(domain_logons, bDomainLogons) static FN_GLOBAL_BOOL(_readraw, bReadRaw) static FN_GLOBAL_BOOL(_writeraw, bWriteRaw) -static FN_GLOBAL_INTEGER(_server_role, ServerRole) /* If lp_statedir() and lp_cachedir() are explicitely set during the * build process or in smb.conf, we use that value. Otherwise they |