[master] f5679bb Fix another inline-C case which tripped up compiler.

Poul-Henning Kamp phk at varnish-cache.org
Tue Nov 12 20:23:56 CET 2013


commit f5679bbf90f19a48c25336abb84ce8cb288f31fc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Nov 12 19:22:34 2013 +0000

    Fix another inline-C case which tripped up compiler.

diff --git a/bin/varnishtest/tests/r00742.vtc b/bin/varnishtest/tests/r00742.vtc
index 91421a3..ea34610 100644
--- a/bin/varnishtest/tests/r00742.vtc
+++ b/bin/varnishtest/tests/r00742.vtc
@@ -8,11 +8,12 @@ server s1 {
 varnish v1 -cliok "param.set vcc_allow_inline_c true" -vcl+backend {
 	C{
 	#include <stdio.h>
-	void foo(void)
-	{
+	}C
+	sub vcl_recv {
+		C{
 		printf("%s %s %s", "foo", "bar", "barf");
+		}C
 	}
-	}C
 } -start
 
 client c1 {



More information about the varnish-commit mailing list