diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-05-21 10:38:04 +1000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-21 10:24:55 +0200 |
commit | a92b653af964364ee438c6ee69a87eb7603ceab0 (patch) | |
tree | f4b97ac212fb19706b5fc89d7c5061b707f74a41 /source3/passdb/pdb_smbpasswd.c | |
parent | c8a23147fe12c693fd7944af7bb09b88393789d9 (diff) | |
download | samba-a92b653af964364ee438c6ee69a87eb7603ceab0.tar.gz samba-a92b653af964364ee438c6ee69a87eb7603ceab0.tar.bz2 samba-a92b653af964364ee438c6ee69a87eb7603ceab0.zip |
s3:passdb Remove use of uint8 uint16 and uint32 in favour of C99 types
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/passdb/pdb_smbpasswd.c')
-rw-r--r-- | source3/passdb/pdb_smbpasswd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c index 17c7f333d2..78bd0e7561 100644 --- a/source3/passdb/pdb_smbpasswd.c +++ b/source3/passdb/pdb_smbpasswd.c @@ -39,7 +39,7 @@ struct smb_passwd const unsigned char *smb_passwd; /* Null if no password */ const unsigned char *smb_nt_passwd; /* Null if no password */ - uint16 acct_ctrl; /* account info (ACB_xxxx bit-mask) */ + uint16_t acct_ctrl; /* account info (ACB_xxxx bit-mask) */ time_t pass_last_set_time; /* password last set time */ }; @@ -614,7 +614,7 @@ static char *format_new_smbpasswd_entry(const struct smb_passwd *newpwd) /* Add the account encoding and the last change time. */ slprintf((char *)p, new_entry_length - 1 - (p - new_entry), "%s:LCT-%08X:\n", pdb_encode_acct_ctrl(newpwd->acct_ctrl, NEW_PW_FORMAT_SPACE_PADDED_LEN), - (uint32)newpwd->pass_last_set_time); + (uint32_t)newpwd->pass_last_set_time); return new_entry; } @@ -1003,7 +1003,7 @@ This is no longer supported.!\n", pwd->smb_name)); slprintf(&ascii_p16[strlen(ascii_p16)], sizeof(ascii_p16)-(strlen(ascii_p16)+1), "%s:LCT-%08X:", - encode_bits, (uint32)pwd->pass_last_set_time ); + encode_bits, (uint32_t)pwd->pass_last_set_time ); wr_len = strlen(ascii_p16); } @@ -1185,7 +1185,7 @@ Error was %s\n", pwd->smb_name, pfile2, strerror(errno))); static bool build_smb_pass (struct smb_passwd *smb_pw, const struct samu *sampass) { - uint32 rid; + uint32_t rid; if (sampass == NULL) return False; @@ -1323,7 +1323,7 @@ static NTSTATUS smbpasswd_getsampwsid(struct pdb_methods *my_methods, struct sam struct smbpasswd_privates *smbpasswd_state = (struct smbpasswd_privates*)my_methods->private_data; struct smb_passwd *smb_pw; FILE *fp = NULL; - uint32 rid; + uint32_t rid; DEBUG(10, ("smbpasswd_getsampwrid: search by sid: %s\n", sid_string_dbg(sid))); |