X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc%2Ftalloc.h;h=0ca338b72fdaac64d0d766a4c8bb05019aee5884;hp=b1b5e9ac461836737fed14a2a97f77c67d68af2d;hb=HEAD;hpb=1dcd3ad51bbeb4ba8048b08d62278df8e428031a diff --git a/ccan/talloc/talloc.h b/ccan/talloc/talloc.h index b1b5e9ac..0ca338b7 100644 --- a/ccan/talloc/talloc.h +++ b/ccan/talloc/talloc.h @@ -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