From 8e9ce06f350d151c4e96f3df2449b8a6e4ae2068 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 25 Feb 2007 09:00:37 +0000 Subject: r21529: Fix warning from bad cast. Jeremy. (This used to be commit 34675624e2be886188337a883a6c4a57ef7e3fe3) --- source3/nsswitch/winbindd_cred_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index bd2798d68b..e061f150b4 100644 --- a/source3/nsswitch/winbindd_cred_cache.c +++ b/source3/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; -- cgit