-#include "typesafe_cb/typesafe_cb.h"
+#include <ccan/typesafe_cb/typesafe_cb.h>
#include <stdlib.h>
static void _register_callback(void (*cb)(void *arg), void *arg)
int main(int argc, char *argv[])
{
+ char str[] = "hello world";
#ifdef FAIL
int *p;
#if !HAVE_TYPEOF||!HAVE_BUILTIN_CHOOSE_EXPR||!HAVE_BUILTIN_TYPES_COMPATIBLE_P
p = NULL;
/* This should work always. */
- register_callback(my_callback, "hello world");
+ register_callback(my_callback, str);
/* This will fail with FAIL defined */
register_callback(my_callback, p);