Author: metze
Date: 2006-09-27 06:48:24 +0000 (Wed, 27 Sep 2006)
New Revision: 18946

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18946

Log:
fix compiler warning

metze
Modified:
   branches/SAMBA_4_0/source/lib/talloc/talloc.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/talloc.c
===================================================================
--- branches/SAMBA_4_0/source/lib/talloc/talloc.c       2006-09-27 06:42:19 UTC 
(rev 18945)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc.c       2006-09-27 06:48:24 UTC 
(rev 18946)
@@ -743,7 +743,7 @@
 */
 void *_talloc_move(const void *new_ctx, const void *_pptr)
 {
-       const void **pptr = (const void **)_pptr;
+       const void **pptr = discard_const_p(const void *,_pptr);
        void *ret = _talloc_steal(new_ctx, *pptr);
        (*pptr) = NULL;
        return ret;

Reply via email to