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_namequery.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_namequery.c')
-rw-r--r-- | source3/nmbd/nmbd_namequery.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/nmbd/nmbd_namequery.c b/source3/nmbd/nmbd_namequery.c index ea170d3aaa3..c1c5f5238a6 100644 --- a/source3/nmbd/nmbd_namequery.c +++ b/source3/nmbd/nmbd_namequery.c @@ -31,7 +31,7 @@ static void query_name_response( struct subnet_record *subrec, struct packet_struct *p) { struct nmb_packet *nmb = &p->packet.nmb; - BOOL success = False; + bool success = False; struct nmb_name *question_name = &rrec->packet->packet.nmb.question.question_name; struct in_addr answer_ip; @@ -139,7 +139,7 @@ static void query_name_timeout_response(struct subnet_record *subrec, { struct nmb_packet *sent_nmb = &rrec->packet->packet.nmb; /* We can only fail here, never succeed. */ - BOOL failed = True; + bool failed = True; struct nmb_name *question_name = &sent_nmb->question.question_name; if(rrec->num_msgs != 0) { @@ -168,7 +168,7 @@ static void query_name_timeout_response(struct subnet_record *subrec, name is not there we look for the name on the given subnet. ****************************************************************************/ -static BOOL query_local_namelists(struct subnet_record *subrec, struct nmb_name *nmbname, +static bool query_local_namelists(struct subnet_record *subrec, struct nmb_name *nmbname, struct name_record **namerecp) { struct name_record *namerec; @@ -192,7 +192,7 @@ static BOOL query_local_namelists(struct subnet_record *subrec, struct nmb_name Try and query for a name. ****************************************************************************/ -BOOL query_name(struct subnet_record *subrec, const char *name, int type, +bool query_name(struct subnet_record *subrec, const char *name, int type, query_name_success_function success_fn, query_name_fail_function fail_fn, struct userdata_struct *userdata) @@ -254,7 +254,7 @@ BOOL query_name(struct subnet_record *subrec, const char *name, int type, Try and query for a name from nmbd acting as a WINS server. ****************************************************************************/ -BOOL query_name_from_wins_server(struct in_addr ip_to, +bool query_name_from_wins_server(struct in_addr ip_to, const char *name, int type, query_name_success_function success_fn, query_name_fail_function fail_fn, |