[master] 12a85b9 Another nit, trying to make opensolaris compile

Poul-Henning Kamp phk at varnish-cache.org
Tue Mar 29 11:43:26 CEST 2011


commit 12a85b93450ac455eb08ecbd34c8f78835daeaed
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 29 09:43:11 2011 +0000

    Another nit, trying to make opensolaris compile

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index 20f7fac..c2066b0 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -271,7 +271,7 @@ start_test(void)
 	memset(jp->buf, 0, jp->bufsiz);
 
 	srandomdev();
-	bprintf(tmpdir, "/tmp/vtc.%d.%08x", getpid(), (unsigned)random());
+	bprintf(tmpdir, "/tmp/vtc.%d.%08x", (int)getpid(), (unsigned)random());
 	AZ(mkdir(tmpdir, 0711));
 
 	tp = VTAILQ_FIRST(&tst_head);



More information about the varnish-commit mailing list