]> git.ozlabs.org Git - ccan/blobdiff - ccan/talloc/talloc.h
tdb2: make internal coalesce() function return length coalesced.
[ccan] / ccan / talloc / talloc.h
index b1b5e9ac461836737fed14a2a97f77c67d68af2d..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