]> git.ozlabs.org Git - ccan/blobdiff - ccan/typesafe_cb/test/compile_ok-typesafe_cb-const.c
typesafe_cb: handle pointers to undefined struct types.
[ccan] / ccan / typesafe_cb / test / compile_ok-typesafe_cb-const.c
index fe3a34171b1e0b3f8ad6c9dc02c869c67912eaaf..5017928a39e70aebd476e74e7dac0b45323bde6d 100644 (file)
@@ -1,4 +1,4 @@
-#include "typesafe_cb/typesafe_cb.h"
+#include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 
 /* 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)
 {
 }