]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r5951: gotta love that SGI compiler :-) (thanks Jason)
authorGerald Carter <jerry@samba.org>
Tue, 22 Mar 2005 15:03:17 +0000 (15:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:10 +0000 (10:56 -0500)
source/passdb/passdb.c
source/passdb/pdb_interface.c

index deac2bbd6e3e20797160a0321d74d1abd7e3a7fa..203fa2bf21e8b46f5ffac21978ef24a83a31a22a 100644 (file)
@@ -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;
index 84d398ccd64ed1634f57e2e714e2018005fd69f5..52357507397ccd0cc312e858f723bec245499f04 100644 (file)
@@ -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) {