tdb2: suppress failtest more than once on mmap.
[ccan] / ccan / typesafe_cb / test / compile_fail-typesafe_cb_preargs.c
index c7dc6f1e380b7ca71affd6db60dcd0ce9803c58c..bd55c6722c70bd62cf17f50d5354a1b822c9b483 100644 (file)
@@ -6,7 +6,7 @@ static void _register_callback(void (*cb)(int x, void *arg), void *arg)
 }
 
 #define register_callback(cb, arg)                             \
-       _register_callback(typesafe_cb_preargs(void, (cb), (arg), int), (arg))
+       _register_callback(typesafe_cb_preargs(void, void *, (cb), (arg), int), (arg))
 
 static void my_callback(int x, char *p)
 {
@@ -17,7 +17,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;