]> git.ozlabs.org Git - ccan/blobdiff - ccan/antithread/antithread.h
typesafe_cb: simplify, preserve namespace.
[ccan] / ccan / antithread / antithread.h
index 0e3a011e5f63e694fc713eb88036df95822df1bd..77f722c39f1686a540a7626df3a5d62ac05a6da2 100644 (file)
@@ -16,7 +16,7 @@ const void *at_pool_ctx(struct at_pool *atp);
 /* Creating an antithread via fork().  Returned athread is child of pool. */
 #define at_run(pool, fn, arg)                                          \
        _at_run(pool,                                                   \
-               typesafe_cb_preargs(void *, (fn), (arg), struct at_pool *), \
+               typesafe_cb_preargs(void *, void *, (fn), (arg), struct at_pool *), \
                (arg))
 
 /* Fork and execvp, with added arguments for child to grab.