Author: metze
Date: 2006-09-27 12:43:08 +0000 (Wed, 27 Sep 2006)
New Revision: 18952

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

Log:
fix compiler warning (merge from samba4)

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


Changeset:
Modified: branches/SAMBA_3_0/source/lib/talloc/talloc.c
===================================================================
--- branches/SAMBA_3_0/source/lib/talloc/talloc.c       2006-09-27 12:42:24 UTC 
(rev 18951)
+++ branches/SAMBA_3_0/source/lib/talloc/talloc.c       2006-09-27 12:43:08 UTC 
(rev 18952)
@@ -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