X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_ok-typesafe_cb-undefined.c;h=aa50bad6a929a38f10daa11d9a647b8f47a34c10;hp=d4ae4ca34964c32345761e07f1861ffe520bee7e;hb=8388c33a83ad51c6fdc355d938f08419d2b24923;hpb=610686a9c31ee04adc170f2f13b5d2bb6432a118 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 d4ae4ca3..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,33 +8,33 @@ 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) { } -static void my_callback_pre(int x, const struct undefined *undef) +static void my_callback_pre(int x, struct undefined *undef) { } -static void my_callback_post(const struct undefined *undef, int x) +static void my_callback_post(struct undefined *undef, int x) { }