From 510a8e1e728c632be9b484480b4a54b361e9f472 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 19 Jul 2007 11:11:20 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1719 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/lib/libvcl/vcc_string.c b/varnish-cache/lib/libvcl/vcc_string.c index 6ec7a6a5..b50a7361 100644 --- a/varnish-cache/lib/libvcl/vcc_string.c +++ b/varnish-cache/lib/libvcl/vcc_string.c @@ -56,7 +56,7 @@ vcc_regexp(struct tokenlist *tl, int sub) 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); -- 2.39.5