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_namelistdb.c | |
parent | 789856f63ff73fec66298e95c91c60db7bdaf14e (diff) | |
download | samba-30191d1a5704ad2b158386b511558972d539ce47.tar.gz samba-30191d1a5704ad2b158386b511558972d539ce47.tar.bz2 samba-30191d1a5704ad2b158386b511558972d539ce47.zip |
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_namelistdb.c')
-rw-r--r-- | source3/nmbd/nmbd_namelistdb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/nmbd/nmbd_namelistdb.c b/source3/nmbd/nmbd_namelistdb.c index 75259a3672..46a9830b25 100644 --- a/source3/nmbd/nmbd_namelistdb.c +++ b/source3/nmbd/nmbd_namelistdb.c @@ -97,7 +97,7 @@ void remove_name_from_namelist(struct subnet_record *subrec, struct name_record *find_name_on_subnet(struct subnet_record *subrec, const struct nmb_name *nmbname, - BOOL self_only) + bool self_only) { struct nmb_name uc_name; struct name_record *name_ret; @@ -139,7 +139,7 @@ struct name_record *find_name_on_subnet(struct subnet_record *subrec, ************************************************************************/ struct name_record *find_name_for_remote_broadcast_subnet(struct nmb_name *nmbname, - BOOL self_only) + bool self_only) { struct subnet_record *subrec; struct name_record *namerec; @@ -179,7 +179,7 @@ void update_name_ttl( struct name_record *namerec, int ttl ) Add an entry to a subnet name list. ***********************************************************************/ -BOOL add_name_to_subnet( struct subnet_record *subrec, +bool add_name_to_subnet( struct subnet_record *subrec, const char *name, int type, uint16 nb_flags, @@ -188,7 +188,7 @@ BOOL add_name_to_subnet( struct subnet_record *subrec, int num_ips, struct in_addr *iplist) { - BOOL ret = False; + bool ret = False; struct name_record *namerec; time_t time_now = time(NULL); @@ -333,7 +333,7 @@ static void remove_nth_ip_in_record( struct name_record *namerec, int ind) Utility function to check if an IP address exists in a name record. ******************************************************************/ -BOOL find_ip_in_name_record( struct name_record *namerec, struct in_addr ip ) +bool find_ip_in_name_record( struct name_record *namerec, struct in_addr ip ) { int i; |