]> err.no Git - varnish/commitdiff
don't make assumptions about pthread_t
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 15:19:38 +0000 (15:19 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 15:19:38 +0000 (15:19 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2996 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_client.c

index b36774ce3e9489fd9b4f565b47a8633b07dd5c65..c0a2134580ad6937f6ff57a80614f32321710c13 100644 (file)
@@ -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 */