summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-22 15:03:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:10 -0500
commitdbd5c968d7b90576fb63dc574e02bbb89a5dcd74 (patch)
tree94a65143021a5d343f08e5ce335c94b78d93c704
parent9b38ced168d4db50126c4259b31cb15e2ee2231b (diff)
downloadsamba-dbd5c968d7b90576fb63dc574e02bbb89a5dcd74.tar.gz
samba-dbd5c968d7b90576fb63dc574e02bbb89a5dcd74.tar.bz2
samba-dbd5c968d7b90576fb63dc574e02bbb89a5dcd74.zip
r5951: gotta love that SGI compiler :-) (thanks Jason)
(This used to be commit e84d070275464de43107b6b5910e25ccc3339302)
-rw-r--r--source3/passdb/passdb.c2
-rw-r--r--source3/passdb/pdb_interface.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index deac2bbd6e..203fa2bf21 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -1894,7 +1894,7 @@ BOOL init_sam_from_buffer_v2(SAM_ACCOUNT *sampass, uint8 *buf, uint32 buflen)
/* Change from V1 is addition of password history field. */
account_policy_get(AP_PASSWORD_HISTORY, &pwHistLen);
if (pwHistLen) {
- char *pw_hist = SMB_MALLOC(pwHistLen * PW_HISTORY_ENTRY_LEN);
+ uint8 *pw_hist = SMB_MALLOC(pwHistLen * PW_HISTORY_ENTRY_LEN);
if (!pw_hist) {
ret = False;
goto done;
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 84d398ccd6..5235750739 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -48,7 +48,7 @@ static struct pdb_init_function_entry *pdb_find_backend_entry(const char *name);
static void pdb_force_pw_initialization(SAM_ACCOUNT *pass)
{
- const char *lm_pwd, *nt_pwd;
+ const uint8 *lm_pwd, *nt_pwd;
/* only reset a password if the last set time has been
explicitly been set to zero. A default last set time
@@ -233,7 +233,7 @@ static NTSTATUS context_getsampwsid(struct pdb_context *context, SAM_ACCOUNT *sa
static NTSTATUS context_add_sam_account(struct pdb_context *context, SAM_ACCOUNT *sam_acct)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
- const char *lm_pw, *nt_pw;
+ const uint8 *lm_pw, *nt_pw;
uint16 acb_flags;
if ((!context) || (!context->pdb_methods)) {
@@ -262,7 +262,7 @@ static NTSTATUS context_add_sam_account(struct pdb_context *context, SAM_ACCOUNT
static NTSTATUS context_update_sam_account(struct pdb_context *context, SAM_ACCOUNT *sam_acct)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
- const char *lm_pw, *nt_pw;
+ const uint8 *lm_pw, *nt_pw;
uint16 acb_flags;
if (!context) {