X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fantithread%2Ftest%2Frun-spawn.c;fp=ccan%2Fantithread%2Ftest%2Frun-spawn.c;h=1f12ebeba41904758df575c098d7d4041beacc53;hp=d2987278204e15ef3b66be28ac13d0200b086baa;hb=387d15092e7f24d7f6014cea43e0c4f7922464de;hpb=d65da2dbb4c43bd7c0e83e299b374acd6bff54f9 diff --git a/ccan/antithread/test/run-spawn.c b/ccan/antithread/test/run-spawn.c index d2987278..1f12ebeb 100644 --- a/ccan/antithread/test/run-spawn.c +++ b/ccan/antithread/test/run-spawn.c @@ -26,8 +26,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); /* This is a failed spawn. */ at = at_spawn(atp, pid, bad_args);