X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc%2Ftalloc.h;h=0ca338b72fdaac64d0d766a4c8bb05019aee5884;hp=59c132edc3a90021745f3be92a7807593cb38e65;hb=b0fa019adb998c20a8740f5696b61ae87d2a77a6;hpb=e70eae05572ae0e7ae119ad02b278f73d4c583dc diff --git a/ccan/talloc/talloc.h b/ccan/talloc/talloc.h index 59c132ed..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 @@ -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