X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fantithread%2Fantithread.c;h=72e172b1a244d82bd6e503510943eaf155091691;hb=6abc867fce8c3eba40eb26092d31e34b47dd9165;hp=da607c1e7b28cd15a07bad97c95805349c863a65;hpb=5caaeab8a7448390eb857006f9b3704de60cf115;p=ccan diff --git a/ccan/antithread/antithread.c b/ccan/antithread/antithread.c index da607c1e..72e172b1 100644 --- a/ccan/antithread/antithread.c +++ b/ccan/antithread/antithread.c @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ #include #include #include @@ -6,14 +7,15 @@ #include #include #include +#include #include #include -#include #include "antithread.h" +#include #include #include #include -#include +#include #include /* FIXME: Valgrind support should be possible for some cases. Tricky @@ -420,7 +422,7 @@ struct at_pool *at_get_pool(int *argc, char *argv[], void **arg) p = atp->p = talloc(atp, struct at_pool_contents); - if (sscanf(argv[1], "AT:%p/%lu/%i/%i/%i/%p", + if (sscanf(argv[1], "AT:%p/%lu/%i/%i/%i/%p", &p->pool, &p->poolsize, &p->fd, &p->parent_rfd, &p->parent_wfd, arg) != 6) { errno = EINVAL;