1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-01 16:23:49 +03:00

r18946: fix compiler warning

metze
This commit is contained in:
Stefan Metzmacher
2006-09-27 06:48:24 +00:00
committed by Gerald (Jerry) Carter
parent ed195999c0
commit 4505958224

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;