X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_ok-typesafe_cb-volatile.c;h=3fcb1ff656b3b576b887a74c63577b2fbca84247;hp=ecb0c58b2dc8bfccf4f0e6f2bbbe4efcbcbc32c6;hb=148c09482cd343f1c02526908a2612d327412697;hpb=67a035869c6f3512ba943ae197b407f182a4506d diff --git a/ccan/typesafe_cb/test/compile_ok-typesafe_cb-volatile.c b/ccan/typesafe_cb/test/compile_ok-typesafe_cb-volatile.c index ecb0c58b..3fcb1ff6 100644 --- a/ccan/typesafe_cb/test/compile_ok-typesafe_cb-volatile.c +++ b/ccan/typesafe_cb/test/compile_ok-typesafe_cb-volatile.c @@ -39,8 +39,9 @@ static void my_callback_post(/* volatile */ char *p, int x) int main(int argc, char *argv[]) { - register_callback(my_callback, "hello world"); - register_callback_pre(my_callback_pre, "hello world"); - register_callback_post(my_callback_post, "hello world"); + char p[] = "hello world"; + register_callback(my_callback, p); + register_callback_pre(my_callback_pre, p); + register_callback_post(my_callback_post, p); return 0; }