1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-01 21:18:10 +03:00

r18952: fix compiler warning (merge from samba4)

metze
This commit is contained in:
Stefan Metzmacher 2006-09-27 12:43:08 +00:00 committed by Gerald (Jerry) Carter
parent a1966a9c07
commit 4cd59d47c8

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)
{
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;