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/smbpasswd.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/smbpasswd.c')
-rw-r--r-- | source3/utils/smbpasswd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index f1a2387090..296c0630d8 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -18,7 +18,7 @@ #include "includes.h" -extern BOOL AllowDebugChange; +extern bool AllowDebugChange; /* * Next two lines needed for SunOS and don't @@ -28,8 +28,8 @@ extern char *optarg; extern int optind; /* forced running in root-mode */ -static BOOL got_username = False; -static BOOL stdin_passwd_get = False; +static bool got_username = False; +static bool stdin_passwd_get = False; static fstring user_name; static char *new_passwd = NULL; static const char *remote_machine = NULL; @@ -199,7 +199,7 @@ static int process_options(int argc, char **argv, int local_flags) /************************************************************* Utility function to prompt for new password. *************************************************************/ -static char *prompt_for_new_password(BOOL stdin_get) +static char *prompt_for_new_password(bool stdin_get) { char *p; fstring new_pw; @@ -263,7 +263,7 @@ static NTSTATUS password_change(const char *remote_mach, char *username, /******************************************************************* Store the LDAP admin password in secrets.tdb ******************************************************************/ -static BOOL store_ldap_admin_pw (char* pw) +static bool store_ldap_admin_pw (char* pw) { if (!pw) return False; |