X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_ok-typesafe_cb-undefined.c;fp=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_ok-typesafe_cb-undefined.c;h=aa50bad6a929a38f10daa11d9a647b8f47a34c10;hb=b0fa019adb998c20a8740f5696b61ae87d2a77a6;hp=62867e7e982e98822ed1cc424a7e36c810b55b32;hpb=076877c266706ba432987195422a1e8653bd0c3b;p=ccan diff --git a/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c b/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c index 62867e7e..aa50bad6 100644 --- a/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c +++ b/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c @@ -8,25 +8,25 @@ static void _register_callback(void (*cb)(void *arg), void *arg) } #define register_callback(cb, arg) \ - _register_callback(typesafe_cb(void, (cb), (arg)), (arg)) + _register_callback(typesafe_cb(void, void *, (cb), (arg)), (arg)) static void _register_callback_pre(void (*cb)(int x, void *arg), void *arg) { } #define register_callback_pre(cb, arg) \ - _register_callback_pre(typesafe_cb_preargs(void, (cb), (arg), int), (arg)) + _register_callback_pre(typesafe_cb_preargs(void, void *, (cb), (arg), int), (arg)) static void _register_callback_post(void (*cb)(void *arg, int x), void *arg) { } #define register_callback_post(cb, arg) \ - _register_callback_post(typesafe_cb_postargs(void, (cb), (arg), int), (arg)) + _register_callback_post(typesafe_cb_postargs(void, void *, (cb), (arg), int), (arg)) struct undefined; -static void my_callback(const struct undefined *undef) +static void my_callback(struct undefined *undef) { }