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/utils/net_conf.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/utils/net_conf.c')
-rw-r--r-- | source3/utils/net_conf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index c18b733a89..6a601d8871 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -342,9 +342,9 @@ done: /* * check if a subkey of KEY_SMBCONF of a given name exists */ -static BOOL smbconf_key_exists(TALLOC_CTX *ctx, const char *subkeyname) +static bool smbconf_key_exists(TALLOC_CTX *ctx, const char *subkeyname) { - BOOL ret = False; + bool ret = False; WERROR werr = WERR_OK; TALLOC_CTX *mem_ctx; struct registry_key *key; @@ -364,10 +364,10 @@ done: return ret; } -static BOOL smbconf_value_exists(TALLOC_CTX *ctx, struct registry_key *key, +static bool smbconf_value_exists(TALLOC_CTX *ctx, struct registry_key *key, const char *param) { - BOOL ret = False; + bool ret = False; WERROR werr = WERR_OK; struct registry_value *value = NULL; @@ -479,10 +479,10 @@ static char *parm_valstr(TALLOC_CTX *ctx, struct parm_struct *parm, valstr = talloc_asprintf(ctx, "%s", (char *)ptr); break; case P_BOOL: - valstr = talloc_asprintf(ctx, "%s", BOOLSTR(*(BOOL *)ptr)); + valstr = talloc_asprintf(ctx, "%s", BOOLSTR(*(bool *)ptr)); break; case P_BOOLREV: - valstr = talloc_asprintf(ctx, "%s", BOOLSTR(!*(BOOL *)ptr)); + valstr = talloc_asprintf(ctx, "%s", BOOLSTR(!*(bool *)ptr)); break; case P_ENUM: for (i = 0; parm->enum_list[i].name; i++) { @@ -600,7 +600,7 @@ done: } /* return True iff there are nondefault globals */ -static BOOL globals_exist(void) +static bool globals_exist(void) { int i = 0; struct parm_struct *parm; @@ -695,7 +695,7 @@ int net_conf_import(int argc, const char **argv) int ret = -1; const char *filename = NULL; const char *servicename = NULL; - BOOL service_found = False; + bool service_found = False; TALLOC_CTX *ctx; struct share_iterator *shares; struct share_params *share; |