X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2Ftest%2Fcompile_ok-typesafe_cb-const.c;h=5017928a39e70aebd476e74e7dac0b45323bde6d;hp=fe3a34171b1e0b3f8ad6c9dc02c869c67912eaaf;hb=67a035869c6f3512ba943ae197b407f182a4506d;hpb=11e4a54f54b4f1f39eeabc390ae51b93b7f08e36;ds=inline diff --git a/ccan/typesafe_cb/test/compile_ok-typesafe_cb-const.c b/ccan/typesafe_cb/test/compile_ok-typesafe_cb-const.c index fe3a3417..5017928a 100644 --- a/ccan/typesafe_cb/test/compile_ok-typesafe_cb-const.c +++ b/ccan/typesafe_cb/test/compile_ok-typesafe_cb-const.c @@ -1,4 +1,4 @@ -#include "typesafe_cb/typesafe_cb.h" +#include #include /* const args in callbacks should be OK. */ @@ -28,11 +28,11 @@ static void my_callback(const char *p) { } -static void my_callback_pre(int x, const char *p) +static void my_callback_pre(int x, /*const*/ char *p) { } -static void my_callback_post(const char *p, int x) +static void my_callback_post(/*const*/ char *p, int x) { }