summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-02-25 09:00:37 +0000
committerJeremy Allison <jra@samba.org>2007-02-25 09:00:37 +0000
commit447910e3c63d5e99a297551fe69efdaebbd18ec4 (patch)
tree1a87fb16acc8e1ddfbb8ce699ecb2876685f8982
parentf52c0f6485cb0d2935cd0fd5c97de2b0d9a860e5 (diff)
downloadsamba-447910e3c63d5e99a297551fe69efdaebbd18ec4.tar.gz
samba-447910e3c63d5e99a297551fe69efdaebbd18ec4.tar.xz
samba-447910e3c63d5e99a297551fe69efdaebbd18ec4.zip
r21529: Fix warning from bad cast.
Jeremy.
-rw-r--r--source/nsswitch/winbindd_cred_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_cred_cache.c b/source/nsswitch/winbindd_cred_cache.c
index bd2798d68bc..e061f150b4f 100644
--- a/source/nsswitch/winbindd_cred_cache.c
+++ b/source/nsswitch/winbindd_cred_cache.c
@@ -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 = SMB_MEMALIGN_ARRAY(unsigned char*, psize,
+ memcredp->nt_hash = (unsigned char *)SMB_MEMALIGN_ARRAY(unsigned char*, psize,
memcredp->len);
if (!memcredp->nt_hash) {
return NT_STATUS_NO_MEMORY;