r1719 - trunk/varnish-cache/lib/libvcl

des at projects.linpro.no des at projects.linpro.no
Thu Jul 19 13:11:20 CEST 2007


Author: des
Date: 2007-07-19 13:11:20 +0200 (Thu, 19 Jul 2007)
New Revision: 1719

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_string.c
Log:
Make regexp variables static.  This has the side effect of replacing
tentative definitions with non-tentative ones, thus sidestepping one
of the issues we have on MacOS X.


Modified: trunk/varnish-cache/lib/libvcl/vcc_string.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_string.c	2007-07-19 11:03:55 UTC (rev 1718)
+++ trunk/varnish-cache/lib/libvcl/vcc_string.c	2007-07-19 11:11:20 UTC (rev 1719)
@@ -56,7 +56,7 @@
 	p = TlAlloc(tl, strlen(buf) + 1);
 	strcpy(p, buf);
 
-	Fh(tl, 0, "void *%s;\n", buf);
+	Fh(tl, 0, "static void *%s;\n", buf);
 	Fi(tl, 0, "\tVRT_re_init(&%s, ",buf);
 	EncToken(tl->fi, tl->t);
 	Fi(tl, 0, ", %d);\n", sub);




More information about the varnish-commit mailing list