]> git.ozlabs.org Git - ccan/blobdiff - ccan/antithread/antithread.h
tdb2: tdb_foreach()
[ccan] / ccan / antithread / antithread.h
index 0e3a011e5f63e694fc713eb88036df95822df1bd..42d5a0fadf558b5f2dad28f76d87c70f849419b5 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 #ifndef ANTITHREAD_H
 #define ANTITHREAD_H
 #include <ccan/typesafe_cb/typesafe_cb.h>
@@ -16,7 +17,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.