From: phk Date: Wed, 23 Jul 2008 15:19:38 +0000 (+0000) Subject: don't make assumptions about pthread_t X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1b23b6ec197e4eda6a59d63fed6451192725468;p=varnish don't make assumptions about pthread_t git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2996 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_client.c b/varnish-cache/bin/varnishtest/vtc_client.c index b36774ce..c0a21345 100644 --- a/varnish-cache/bin/varnishtest/vtc_client.c +++ b/varnish-cache/bin/varnishtest/vtc_client.c @@ -140,7 +140,7 @@ client_wait(struct client *c) vtc_log(c->vl, 0, "Client returned \"%s\"", (char *)res); exit (1); } - c->tp = NULL; + c->tp = 0; } /********************************************************************** @@ -172,7 +172,7 @@ cmd_client(CMD_ARGS) /* Reset and free */ VTAILQ_FOREACH_SAFE(c, &clients, list, c2) { VTAILQ_REMOVE(&clients, c, list); - if (c->tp != NULL) + if (c->tp != 0) client_wait(c); FREE_OBJ(c); /* XXX: MEMLEAK */