X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fantithread%2Ftest%2Frun-spawn.c;h=f1dcd2f82c1cc2322028ac7569d57d42a916f057;hp=d2987278204e15ef3b66be28ac13d0200b086baa;hb=5b0bdc23fbc8549f8d2e3034cd0c3e018dd994ad;hpb=74e9da4d1c0b968fbac4b8da165e6ad5318329dd;ds=sidebyside diff --git a/ccan/antithread/test/run-spawn.c b/ccan/antithread/test/run-spawn.c index d2987278..f1dcd2f8 100644 --- a/ccan/antithread/test/run-spawn.c +++ b/ccan/antithread/test/run-spawn.c @@ -1,6 +1,6 @@ -#include "antithread/antithread.c" +#include #include -#include "tap/tap.h" +#include int main(int argc, char *argv[]) { @@ -8,7 +8,7 @@ int main(int argc, char *argv[]) struct athread *at; int err, *pid; void *arg; - char *bad_args[] = { "/", NULL }; + char *bad_args[] = { (char *)"/", NULL }; atp = at_get_pool(&argc, argv, &arg); if (atp) { @@ -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);