]> err.no Git - varnish/commitdiff
Make regexp variables static. This has the side effect of replacing
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Jul 2007 11:11:20 +0000 (11:11 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 19 Jul 2007 11:11:20 +0000 (11:11 +0000)
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

index 6ec7a6a5361f73ab1137cacc0fc87f415c5ac425..b50a736164d5762d10cb93290321dfa1ee607a19 100644 (file)
@@ -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);