summaryrefslogtreecommitdiff
path: root/source3/libsmb/namecache.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-18 17:40:25 -0700
committerJeremy Allison <jra@samba.org>2007-10-18 17:40:25 -0700
commit30191d1a5704ad2b158386b511558972d539ce47 (patch)
tree4f46e5c4f28f672ab661aa18f45745860970a88c /source3/libsmb/namecache.c
parent789856f63ff73fec66298e95c91c60db7bdaf14e (diff)
downloadsamba-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/libsmb/namecache.c')
-rw-r--r--source3/libsmb/namecache.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c
index aeca5673c00..b569100d94f 100644
--- a/source3/libsmb/namecache.c
+++ b/source3/libsmb/namecache.c
@@ -33,7 +33,7 @@
* false on failure
**/
-BOOL namecache_enable(void)
+bool namecache_enable(void)
{
/*
* Check if name caching disabled by setting the name cache
@@ -68,7 +68,7 @@ BOOL namecache_enable(void)
* false on failure
**/
-BOOL namecache_shutdown(void)
+bool namecache_shutdown(void)
{
if (!gencache_shutdown()) {
DEBUG(2, ("namecache_shutdown: Couldn't close namecache on top of gencache.\n"));
@@ -111,13 +111,13 @@ static char* namecache_key(const char *name, int name_type)
* ip addresses being stored
**/
-BOOL namecache_store(const char *name, int name_type,
+bool namecache_store(const char *name, int name_type,
int num_names, struct ip_service *ip_list)
{
time_t expiry;
char *key, *value_string;
int i;
- BOOL ret;
+ bool ret;
/*
* we use gecache call to avoid annoying debug messages about
@@ -179,7 +179,7 @@ BOOL namecache_store(const char *name, int name_type,
* false if name isn't found in the cache or has expired
**/
-BOOL namecache_fetch(const char *name, int name_type, struct ip_service **ip_list,
+bool namecache_fetch(const char *name, int name_type, struct ip_service **ip_list,
int *num_names)
{
char *key, *value;
@@ -229,9 +229,9 @@ BOOL namecache_fetch(const char *name, int name_type, struct ip_service **ip_lis
*
**/
-BOOL namecache_delete(const char *name, int name_type)
+bool namecache_delete(const char *name, int name_type)
{
- BOOL ret;
+ bool ret;
char *key;
if (!gencache_init())
@@ -298,13 +298,13 @@ static char *namecache_status_record_key(const char *name, int name_type1,
/* Store a name status record. */
-BOOL namecache_status_store(const char *keyname, int keyname_type,
+bool namecache_status_store(const char *keyname, int keyname_type,
int name_type, struct in_addr keyip,
const char *srvname)
{
char *key;
time_t expiry;
- BOOL ret;
+ bool ret;
if (!gencache_init())
return False;
@@ -327,7 +327,7 @@ BOOL namecache_status_store(const char *keyname, int keyname_type,
/* Fetch a name status record. */
-BOOL namecache_status_fetch(const char *keyname, int keyname_type,
+bool namecache_status_fetch(const char *keyname, int keyname_type,
int name_type, struct in_addr keyip, char *srvname_out)
{
char *key = NULL;