summaryrefslogtreecommitdiff
path: root/source/lib/account_pol.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
commitf35a266b3cbb3e5fa6a86be60f34fe340a3ca71f (patch)
tree1bc44df77ea5bb85a1e8bff698a583f3a3f43fc5 /source/lib/account_pol.c
parentea3173a9457f9095a70d401abfd1af8c913211a0 (diff)
downloadsamba-f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f.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.
Diffstat (limited to 'source/lib/account_pol.c')
-rw-r--r--source/lib/account_pol.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/lib/account_pol.c b/source/lib/account_pol.c
index 516755426ae..96a471cf06e 100644
--- a/source/lib/account_pol.c
+++ b/source/lib/account_pol.c
@@ -166,7 +166,7 @@ int account_policy_name_to_fieldnum(const char *name)
Get default value for account policy
*****************************************************************************/
-BOOL account_policy_get_default(int account_policy, uint32 *val)
+bool account_policy_get_default(int account_policy, uint32 *val)
{
int i;
for (i=0; account_policy_names[i].field; i++) {
@@ -184,7 +184,7 @@ BOOL account_policy_get_default(int account_policy, uint32 *val)
Set default for a field if it is empty
*****************************************************************************/
-static BOOL account_policy_set_default_on_empty(int account_policy)
+static bool account_policy_set_default_on_empty(int account_policy)
{
uint32 value;
@@ -201,7 +201,7 @@ static BOOL account_policy_set_default_on_empty(int account_policy)
Open the account policy tdb.
***`*************************************************************************/
-BOOL init_account_policy(void)
+bool init_account_policy(void)
{
const char *vstring = "INFO/version";
@@ -262,7 +262,7 @@ BOOL init_account_policy(void)
Get an account policy (from tdb)
*****************************************************************************/
-BOOL account_policy_get(int field, uint32 *value)
+bool account_policy_get(int field, uint32 *value)
{
const char *name;
uint32 regval;
@@ -299,7 +299,7 @@ BOOL account_policy_get(int field, uint32 *value)
Set an account policy (in tdb)
****************************************************************************/
-BOOL account_policy_set(int field, uint32 value)
+bool account_policy_set(int field, uint32 value)
{
const char *name;
@@ -327,12 +327,12 @@ BOOL account_policy_set(int field, uint32 value)
Set an account policy in the cache
****************************************************************************/
-BOOL cache_account_policy_set(int field, uint32 value)
+bool cache_account_policy_set(int field, uint32 value)
{
const char *policy_name = NULL;
char *cache_key = NULL;
char *cache_value = NULL;
- BOOL ret = False;
+ bool ret = False;
policy_name = decode_account_policy_name(field);
if (policy_name == NULL) {
@@ -364,12 +364,12 @@ BOOL cache_account_policy_set(int field, uint32 value)
Get an account policy from the cache
*****************************************************************************/
-BOOL cache_account_policy_get(int field, uint32 *value)
+bool cache_account_policy_get(int field, uint32 *value)
{
const char *policy_name = NULL;
char *cache_key = NULL;
char *cache_value = NULL;
- BOOL ret = False;
+ bool ret = False;
policy_name = decode_account_policy_name(field);
if (policy_name == NULL) {