X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fantithread%2Ftest%2Frun-spawn.c;h=1f12ebeba41904758df575c098d7d4041beacc53;hp=d2987278204e15ef3b66be28ac13d0200b086baa;hb=e1f11b7b1e39ceb092155ba742b34f0785d88d06;hpb=36e8b652d0aa045e6e427dc3851da24472ed6a95 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);