svn commit: samba r21529 - in branches:
SAMBA_3_0/source/nsswitch SAMBA_3_0_25/source/nsswitch
Stefan (metze) Metzmacher
metze at samba.org
Sun Feb 25 10:30:24 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
jra at samba.org schrieb:
> Author: jra
> Date: 2007-02-25 09:00:37 +0000 (Sun, 25 Feb 2007)
> New Revision: 21529
>
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21529
>
> Log:
> Fix warning from bad cast.
> Jeremy.
>
> Modified:
> branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c
> branches/SAMBA_3_0_25/source/nsswitch/winbindd_cred_cache.c
>
>
> Changeset:
> Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c
> ===================================================================
> --- branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c 2007-02-24 18:57:29 UTC (rev 21528)
> +++ branches/SAMBA_3_0/source/nsswitch/winbindd_cred_cache.c 2007-02-25 09:00:37 UTC (rev 21529)
> @@ -484,7 +484,7 @@
>
> /* 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;
>
> Modified: branches/SAMBA_3_0_25/source/nsswitch/winbindd_cred_cache.c
> ===================================================================
> --- branches/SAMBA_3_0_25/source/nsswitch/winbindd_cred_cache.c 2007-02-24 18:57:29 UTC (rev 21528)
> +++ branches/SAMBA_3_0_25/source/nsswitch/winbindd_cred_cache.c 2007-02-25 09:00:37 UTC (rev 21529)
> @@ -484,7 +484,7 @@
>
> /* 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);
shouldn't that be
memcredp->nt_hash = SMB_MEMALIGN_ARRAY(unsigned char, psize,... ?
metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFF4WU/m70gjA5TCD8RAh/fAJ0eh4mgrMoKNAowRMGaglILPL/3JwCgmHg2
f8ew+BOHf5tussYJW6RtWWo=
=OahP
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list