]> git.ozlabs.org Git - ccan/blobdiff - ccan/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c
various: add LICENSE comments.
[ccan] / ccan / typesafe_cb / test / compile_fail-typesafe_cb_postargs.c
index 099eb25755559e1c26fd3d807c265d7bf7f55071..7d3530851d5b94ba1c69a932673b5241df3f0f1c 100644 (file)
@@ -1,11 +1,11 @@
-#include "typesafe_cb/typesafe_cb.h"
+#include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 
 static void _register_callback(void (*cb)(void *arg, int x), void *arg)
 {
 }
 #define register_callback(cb, arg)                             \
-       _register_callback(typesafe_cb_postargs(void, (cb), (arg), int), (arg))
+       _register_callback(typesafe_cb_postargs(void, void *, (cb), (arg), int), (arg))
 
 static void my_callback(char *p, int x)
 {
@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
 #ifdef FAIL
        int *p;
 #if !HAVE_TYPEOF||!HAVE_BUILTIN_CHOOSE_EXPR||!HAVE_BUILTIN_TYPES_COMPATIBLE_P
-#error "Unfortunately we don't fail if cast_if_type is a noop."
+#error "Unfortunately we don't fail if typesafe_cb_cast is a noop."
 #endif
 #else
        char *p;