From 30191d1a5704ad2b158386b511558972d539ce47 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 18 Oct 2007 17:40:25 -0700 Subject: 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) --- source3/libads/dns.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source3/libads/dns.c') diff --git a/source3/libads/dns.c b/source3/libads/dns.c index 02baec78fb..7959e910a8 100644 --- a/source3/libads/dns.c +++ b/source3/libads/dns.c @@ -65,7 +65,7 @@ /********************************************************************* *********************************************************************/ -static BOOL ads_dns_parse_query( TALLOC_CTX *ctx, uint8 *start, uint8 *end, +static bool ads_dns_parse_query( TALLOC_CTX *ctx, uint8 *start, uint8 *end, uint8 **ptr, struct dns_query *q ) { uint8 *p = *ptr; @@ -103,7 +103,7 @@ static BOOL ads_dns_parse_query( TALLOC_CTX *ctx, uint8 *start, uint8 *end, /********************************************************************* *********************************************************************/ -static BOOL ads_dns_parse_rr( TALLOC_CTX *ctx, uint8 *start, uint8 *end, +static bool ads_dns_parse_rr( TALLOC_CTX *ctx, uint8 *start, uint8 *end, uint8 **ptr, struct dns_rr *rr ) { uint8 *p = *ptr; @@ -157,7 +157,7 @@ static BOOL ads_dns_parse_rr( TALLOC_CTX *ctx, uint8 *start, uint8 *end, /********************************************************************* *********************************************************************/ -static BOOL ads_dns_parse_rr_srv( TALLOC_CTX *ctx, uint8 *start, uint8 *end, +static bool ads_dns_parse_rr_srv( TALLOC_CTX *ctx, uint8 *start, uint8 *end, uint8 **ptr, struct dns_rr_srv *srv ) { struct dns_rr rr; @@ -202,7 +202,7 @@ static BOOL ads_dns_parse_rr_srv( TALLOC_CTX *ctx, uint8 *start, uint8 *end, /********************************************************************* *********************************************************************/ -static BOOL ads_dns_parse_rr_ns( TALLOC_CTX *ctx, uint8 *start, uint8 *end, +static bool ads_dns_parse_rr_ns( TALLOC_CTX *ctx, uint8 *start, uint8 *end, uint8 **ptr, struct dns_rr_ns *nsrec ) { struct dns_rr rr; @@ -638,10 +638,10 @@ static char *sitename_key(const char *realm) We store indefinately as every new CLDAP query will re-write this. ****************************************************************************/ -BOOL sitename_store(const char *realm, const char *sitename) +bool sitename_store(const char *realm, const char *sitename) { time_t expire; - BOOL ret = False; + bool ret = False; char *key; if (!gencache_init()) { @@ -681,7 +681,7 @@ char *sitename_fetch(const char *realm) { char *sitename = NULL; time_t timeout; - BOOL ret = False; + bool ret = False; const char *query_realm; char *key; @@ -713,9 +713,9 @@ char *sitename_fetch(const char *realm) Did the sitename change ? ****************************************************************************/ -BOOL stored_sitename_changed(const char *realm, const char *sitename) +bool stored_sitename_changed(const char *realm, const char *sitename) { - BOOL ret = False; + bool ret = False; char *new_sitename; -- cgit