]> git.ozlabs.org Git - ccan/blobdiff - ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c
typesafe: fix warnings with gcc's -Wcast-qual
[ccan] / ccan / typesafe_cb / test / compile_ok-typesafe_cb-NULL.c
index e3dceb245eefb56541d5b03db8f7c816d2b087d0..9346170dfdafbbb72dce23a868ff216ca951033d 100644 (file)
@@ -3,7 +3,7 @@
 
 /* NULL args for callback function should be OK for _exact and _def. */
 
-static void _register_callback(void (*cb)(void *arg), void *arg)
+static void _register_callback(void (*cb)(const void *arg), const void *arg)
 {
 }