if (_talloc_steal_internal(new_parent, h) != h) {
return NULL;
}
- return ptr;
+ return (void *)ptr;
}
}
void *_talloc_move(const void *new_ctx, 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, (void *)*pptr);
(*pptr) = NULL;
return ret;
}
}
#undef talloc_free
+int talloc_free(void *ptr);
int talloc_free(void *ptr)
{
return _talloc_free_internal(ptr);