r21530: Don't code with jet-lag and Volker looking over your
authorJeremy Allison <jra@samba.org>
Sun, 25 Feb 2007 09:04:06 +0000 (09:04 +0000)
committerJeremy Allison <jra@samba.org>
Sun, 25 Feb 2007 09:04:06 +0000 (09:04 +0000)
shoulder.... Correct fix for warning :-)
Jeremy.

source/nsswitch/winbindd_cred_cache.c

index e061f150b4f62e51b326362b928d8649c7bce63a..84c844a9dae49ae9f59860313370a483b1c0453a 100644 (file)
@@ -484,7 +484,7 @@ static NTSTATUS store_memory_creds(struct WINBINDD_MEMORY_CREDS *memcredp, const
 
        /* On non-linux platforms, mlock()'d memory must be aligned */
 
-       memcredp->nt_hash = (unsigned char *)SMB_MEMALIGN_ARRAY(unsigned char*, psize, 
+       memcredp->nt_hash = SMB_MEMALIGN_ARRAY(unsigned char, psize, 
                                               memcredp->len);
        if (!memcredp->nt_hash) {
                return NT_STATUS_NO_MEMORY;