X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fantithread%2Ftest%2Frun-simple.c;h=56569bb24b646615ad278c85fe855cf8858a7e9e;hp=02bb9e0cb4dd57b3d818c699f815f4c1261c44e7;hb=5b0bdc23fbc8549f8d2e3034cd0c3e018dd994ad;hpb=36e8b652d0aa045e6e427dc3851da24472ed6a95;ds=sidebyside diff --git a/ccan/antithread/test/run-simple.c b/ccan/antithread/test/run-simple.c index 02bb9e0c..56569bb2 100644 --- a/ccan/antithread/test/run-simple.c +++ b/ccan/antithread/test/run-simple.c @@ -1,6 +1,6 @@ -#include "antithread/antithread.c" +#include #include -#include "tap/tap.h" +#include static void *test(struct at_pool *atp, int *pid) { @@ -20,8 +20,8 @@ int main(int argc, char *argv[]) assert(atp); pid = talloc(at_pool_ctx(atp), int); assert(pid); - ok1((char *)pid >= (char *)atp->pool - && (char *)pid < (char *)atp->pool + atp->poolsize); + ok1((char *)pid >= (char *)atp->p->pool + && (char *)pid < (char *)atp->p->pool + atp->p->poolsize); at = at_run(atp, test, pid); assert(at);