]> git.ozlabs.org Git - ccan/blobdiff - ccan/talloc/talloc.h
configurator: HAVE_SECTION_START_STOP
[ccan] / ccan / talloc / talloc.h
index 59c132edc3a90021745f3be92a7807593cb38e65..0ca338b72fdaac64d0d766a4c8bb05019aee5884 100644 (file)
@@ -210,7 +210,7 @@ int talloc_free(const void *ptr);
  *     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
@@ -276,7 +276,7 @@ int talloc_free(const void *ptr);
  */
 #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