X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fantithread%2Ftest%2Frun-tell_parent.c;h=d215a6709d88e796ad576aabd4107643e9b718f3;hb=0a379f773681c7b3e53866b9a6e9cd0006012c1a;hp=a38f8c913a35c21d614ac7cdbcff6b227dbb4838;hpb=36e8b652d0aa045e6e427dc3851da24472ed6a95;p=ccan diff --git a/ccan/antithread/test/run-tell_parent.c b/ccan/antithread/test/run-tell_parent.c index a38f8c91..d215a670 100644 --- a/ccan/antithread/test/run-tell_parent.c +++ b/ccan/antithread/test/run-tell_parent.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) { @@ -21,8 +21,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);