X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc%2Ftalloc.h;fp=ccan%2Ftalloc%2Ftalloc.h;h=e4f15aeecbb1b9dde7909525da89e88c727936e9;hp=54a702050e96d73409c8169e5ac58b11b359fc68;hb=d707abbb2ff707dd34aa77c9028f23f2266f8d5f;hpb=061e63028390bc27db749c75a3689c2888f00f57 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