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/libsmb/trustdom_cache.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/libsmb/trustdom_cache.c') diff --git a/source3/libsmb/trustdom_cache.c b/source3/libsmb/trustdom_cache.c index 37ad85ce0c..f350cd0bc8 100644 --- a/source3/libsmb/trustdom_cache.c +++ b/source3/libsmb/trustdom_cache.c @@ -47,7 +47,7 @@ * false if cache init failed **/ -BOOL trustdom_cache_enable(void) +bool trustdom_cache_enable(void) { /* Init trustdom cache by calling gencache initialisation */ if (!gencache_init()) { @@ -67,7 +67,7 @@ BOOL trustdom_cache_enable(void) * false if it failed **/ -BOOL trustdom_cache_shutdown(void) +bool trustdom_cache_shutdown(void) { /* Close trustdom cache by calling gencache shutdown */ if (!gencache_shutdown()) { @@ -108,12 +108,12 @@ static char* trustdom_cache_key(const char* name) * false if store attempt failed **/ -BOOL trustdom_cache_store(char* name, char* alt_name, const DOM_SID *sid, +bool trustdom_cache_store(char* name, char* alt_name, const DOM_SID *sid, time_t timeout) { char *key, *alt_key; fstring sid_string; - BOOL ret; + bool ret; /* * we use gecache call to avoid annoying debug messages @@ -161,7 +161,7 @@ BOOL trustdom_cache_store(char* name, char* alt_name, const DOM_SID *sid, * false if has expired/doesn't exist **/ -BOOL trustdom_cache_fetch(const char* name, DOM_SID* sid) +bool trustdom_cache_fetch(const char* name, DOM_SID* sid) { char *key = NULL, *value = NULL; time_t timeout; @@ -230,7 +230,7 @@ uint32 trustdom_cache_fetch_timestamp( void ) store the timestamp from the last update *******************************************************************/ -BOOL trustdom_cache_store_timestamp( uint32 t, time_t timeout ) +bool trustdom_cache_store_timestamp( uint32 t, time_t timeout ) { fstring value; -- cgit