summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-10-20 16:24:46 +0200
committerVolker Lendecke <vl@sernet.de>2007-10-21 08:47:30 +0200
commit611479fd44433fe8bd26e05eae765bcab032edad (patch)
tree7ebbc4811666ba373cce61788f0cf61b16872dac
parent669d43af3159ad6be3e43361b2b40e3284821238 (diff)
downloadsamba-611479fd44433fe8bd26e05eae765bcab032edad.tar.gz
samba-611479fd44433fe8bd26e05eae765bcab032edad.tar.bz2
samba-611479fd44433fe8bd26e05eae765bcab032edad.zip
Fix two type-punned warnings
(This used to be commit 04d660bbb371f859cc50a9f3ea7d358f74acfa8b)
-rw-r--r--source3/param/loadparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 80462ee968..dcec6bce89 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -227,7 +227,7 @@ typedef struct {
bool bDisableSpoolss;
int syslog;
int os_level;
- int enhanced_browsing;
+ bool enhanced_browsing;
int max_ttl;
int max_wins_ttl;
int min_wins_ttl;
@@ -1589,7 +1589,7 @@ static void init_globals(bool first_time_only)
Globals.map_to_guest = 0; /* By Default, "Never" */
Globals.oplock_break_wait_time = 0; /* By Default, 0 msecs. */
- Globals.enhanced_browsing = True;
+ Globals.enhanced_browsing = true;
Globals.iLockSpinTime = WINDOWS_MINIMUM_LOCK_TIMEOUT_MS; /* msec. */
#ifdef MMAP_BLACKLIST
Globals.bUseMmap = False;
@@ -2018,7 +2018,7 @@ FN_GLOBAL_BOOL(lp_paranoid_server_security, &Globals.paranoid_server_security)
FN_GLOBAL_INTEGER(lp_maxdisksize, &Globals.maxdisksize)
FN_GLOBAL_INTEGER(lp_lpqcachetime, &Globals.lpqcachetime)
FN_GLOBAL_INTEGER(lp_max_smbd_processes, &Globals.iMaxSmbdProcesses)
-FN_GLOBAL_INTEGER(_lp_disable_spoolss, &Globals.bDisableSpoolss)
+FN_GLOBAL_BOOL(_lp_disable_spoolss, &Globals.bDisableSpoolss)
FN_GLOBAL_INTEGER(lp_syslog, &Globals.syslog)
static FN_GLOBAL_INTEGER(lp_announce_as, &Globals.announce_as)
FN_GLOBAL_INTEGER(lp_lm_announce, &Globals.lm_announce)