X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc%2Ftalloc.h;h=e4f15aeecbb1b9dde7909525da89e88c727936e9;hp=54a702050e96d73409c8169e5ac58b11b359fc68;hb=d7c0cfeb86f8a6474d2fa182c0325e0d3aee0ecd;hpb=76ae790f2cc2cb1e46bb0b9e5002c7feb6a79df1 diff --git a/ccan/talloc/talloc.h b/ccan/talloc/talloc.h index 54a70205..e4f15aee 100644 --- a/ccan/talloc/talloc.h +++ b/ccan/talloc/talloc.h @@ -196,7 +196,7 @@ int talloc_free(const void *ptr); * talloc, talloc_free */ #define talloc_set_destructor(ptr, function) \ - _talloc_set_destructor((ptr), typesafe_cb(int, (function), (ptr))) + _talloc_set_destructor((ptr), typesafe_cb_def(int, (function), (ptr))) /** * talloc_zero - allocate zeroed dynamic memory for a type