* talloc, talloc_free
*/
#define talloc_set_destructor(ptr, function) \
- _talloc_set_destructor((ptr), typesafe_cb_def(int, (function), (ptr)))
+ _talloc_set_destructor((ptr), typesafe_cb(int, void *, (function), (ptr)))
/**
* talloc_zero - allocate zeroed dynamic memory for a type
*/
#define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
-#ifdef HAVE_TYPEOF
+#if HAVE_TYPEOF
/**
* talloc_steal - change/set the parent context of a talloc pointer
* @ctx: the new parent