summaryrefslogtreecommitdiff
path: root/source3/passdb/passdb.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-22 03:41:24 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-22 03:41:24 +0200
commite16e6e9cb0c30e84edda99328f1b3eb0c7f428f2 (patch)
treec465e9f72441322e3f444d20bf71abf5eb9db9d6 /source3/passdb/passdb.c
parent4e9db0b1004aedf9eef69b9361ed6d9e69897a1e (diff)
downloadsamba-e16e6e9cb0c30e84edda99328f1b3eb0c7f428f2.tar.gz
samba-e16e6e9cb0c30e84edda99328f1b3eb0c7f428f2.tar.bz2
samba-e16e6e9cb0c30e84edda99328f1b3eb0c7f428f2.zip
Use standard types.
Diffstat (limited to 'source3/passdb/passdb.c')
-rw-r--r--source3/passdb/passdb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index a670b46d69..60699615f0 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -259,7 +259,7 @@ NTSTATUS samu_alloc_rid_unix(struct samu *user, const struct passwd *pwd)
null). length *MUST BE MORE THAN 2* !
**********************************************************/
-char *pdb_encode_acct_ctrl(uint32 acct_ctrl, size_t length)
+char *pdb_encode_acct_ctrl(uint32_t acct_ctrl, size_t length)
{
fstring acct_str;
char *result;
@@ -298,10 +298,10 @@ char *pdb_encode_acct_ctrl(uint32 acct_ctrl, size_t length)
Decode the account control bits from a string.
**********************************************************/
-uint32 pdb_decode_acct_ctrl(const char *p)
+uint32_t pdb_decode_acct_ctrl(const char *p)
{
- uint32 acct_ctrl = 0;
- bool finished = False;
+ uint32_t acct_ctrl = 0;
+ bool finished = false;
/*
* Check if the account type bits have been encoded after the
@@ -329,7 +329,7 @@ uint32 pdb_decode_acct_ctrl(const char *p)
case '\n':
case '\0':
case ']':
- default: { finished = True; }
+ default: { finished = true; }
}
}
@@ -367,7 +367,7 @@ bool pdb_gethexpwd(const char *p, unsigned char *pwd)
char *p1, *p2;
if (!p)
- return (False);
+ return false;
for (i = 0; i < 32; i += 2) {
hinybble = toupper_ascii(p[i]);
@@ -377,14 +377,14 @@ bool pdb_gethexpwd(const char *p, unsigned char *pwd)
p2 = strchr(hexchars, lonybble);
if (!p1 || !p2)
- return (False);
+ return false;
hinybble = PTR_DIFF(p1, hexchars);
lonybble = PTR_DIFF(p2, hexchars);
pwd[i / 2] = (hinybble << 4) | lonybble;
}
- return (True);
+ return true;
}
/*************************************************************