From 4cd59d47c8d21685cfab45f4bcfc005c5d7cf79e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 27 Sep 2006 12:43:08 +0000 Subject: [PATCH] r18952: fix compiler warning (merge from samba4) metze --- source/lib/talloc/talloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/talloc/talloc.c b/source/lib/talloc/talloc.c index d790c6c26bb..58028a85b8c 100644 --- a/source/lib/talloc/talloc.c +++ b/source/lib/talloc/talloc.c @@ -743,7 +743,7 @@ void *_talloc_steal(const void *new_ctx, const void *ptr) */ 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;