1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

r18952: fix compiler warning (merge from samba4)

metze
(This used to be commit 4cd59d47c8d21685cfab45f4bcfc005c5d7cf79e)
This commit is contained in:
Stefan Metzmacher 2006-09-27 12:43:08 +00:00 committed by Gerald (Jerry) Carter
parent dc030ce813
commit cf5ab86a65

View File

@ -743,7 +743,7 @@ void *_talloc_steal(const void *new_ctx, const void *ptr)
*/ */
void *_talloc_move(const void *new_ctx, const void *_pptr) 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); void *ret = _talloc_steal(new_ctx, *pptr);
(*pptr) = NULL; (*pptr) = NULL;
return ret; return ret;