diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-18 17:40:25 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-18 17:40:25 -0700 |
commit | 30191d1a5704ad2b158386b511558972d539ce47 (patch) | |
tree | 4f46e5c4f28f672ab661aa18f45745860970a88c /source3/nmbd/nmbd.c | |
parent | 789856f63ff73fec66298e95c91c60db7bdaf14e (diff) | |
download | samba-30191d1a5704ad2b158386b511558972d539ce47.tar.gz |
RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
Diffstat (limited to 'source3/nmbd/nmbd.c')
-rw-r--r-- | source3/nmbd/nmbd.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index f0de0b8485f..46808f51ded 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -26,22 +26,22 @@ int ClientNMB = -1; int ClientDGRAM = -1; int global_nmb_port = -1; -extern BOOL rescan_listen_set; -extern BOOL global_in_nmbd; +extern bool rescan_listen_set; +extern bool global_in_nmbd; -extern BOOL override_logfile; +extern bool override_logfile; /* are we running as a daemon ? */ -static BOOL is_daemon; +static bool is_daemon; /* fork or run in foreground ? */ -static BOOL Fork = True; +static bool Fork = True; /* log to standard output ? */ -static BOOL log_stdout; +static bool log_stdout; /* have we found LanMan clients yet? */ -BOOL found_lm_clients = False; +bool found_lm_clients = False; /* what server type are we currently */ @@ -174,7 +174,7 @@ static void expire_names_and_servers(time_t t) Reload the list of network interfaces. ************************************************************************** */ -static BOOL reload_interfaces(time_t t) +static bool reload_interfaces(time_t t) { static time_t lastt; int n; @@ -286,9 +286,9 @@ static BOOL reload_interfaces(time_t t) Reload the services file. **************************************************************************** */ -static BOOL reload_nmbd_services(BOOL test) +static bool reload_nmbd_services(bool test) { - BOOL ret; + bool ret; set_remote_machine_name("nmbd", False); @@ -317,7 +317,7 @@ static BOOL reload_nmbd_services(BOOL test) /**************************************************************************** ** * React on 'smbcontrol nmbd reload-config' in the same way as to SIGHUP - * We use buf here to return BOOL result to process() when reload_interfaces() + * We use buf here to return bool result to process() when reload_interfaces() * detects that there are no subnets. **************************************************************************** */ @@ -337,7 +337,7 @@ static void msg_reload_nmbd_services(struct messaging_context *msg, /* If reload_interfaces() returned True */ /* we need to shutdown if there are no subnets... */ /* pass this info back to process() */ - *((BOOL*)data->data) = reload_interfaces(0); + *((bool *)data->data) = reload_interfaces(0); } } @@ -407,8 +407,8 @@ static void msg_nmbd_send_packet(struct messaging_context *msg, static void process(void) { - BOOL run_election; - BOOL no_subnets; + bool run_election; + bool no_subnets; while( True ) { time_t t = time(NULL); @@ -649,7 +649,7 @@ static void process(void) Open the socket communication. **************************************************************************** */ -static BOOL open_sockets(BOOL isdaemon, int port) +static bool open_sockets(bool isdaemon, int port) { /* * The sockets opened here will be used to receive broadcast @@ -693,10 +693,10 @@ static BOOL open_sockets(BOOL isdaemon, int port) int main(int argc, const char *argv[]) { pstring logfile; - static BOOL opt_interactive; + static bool opt_interactive; poptContext pc; static char *p_lmhosts = dyn_LMHOSTSFILE; - static BOOL no_process_group = False; + static bool no_process_group = False; int opt; struct poptOption long_options[] = { POPT_AUTOHELP |