]> err.no Git - varnish/commitdiff
Fix stylistic Flexelint unhappiness with the compiled C source.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 9 Apr 2007 21:03:12 +0000 (21:03 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 9 Apr 2007 21:03:12 +0000 (21:03 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1310 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_compile.c

index 23619b389ff44cb046d9004e4c667f5d65e4a430..66504a133dedbb458ec7b6bc0222ee8c0c6d0358 100644 (file)
@@ -302,7 +302,6 @@ LocTable(const struct tokenlist *tl)
        const char *p;
 
        Fh(tl, 0, "#define VGC_NREFS %u\n", tl->cnt + 1);
-       Fh(tl, 0, "static struct vrt_ref VGC_ref[VGC_NREFS];\n");
        Fc(tl, 0, "static struct vrt_ref VGC_ref[VGC_NREFS] = {\n");
        lin = 1;
        pos = 0;
@@ -334,6 +333,7 @@ LocTable(const struct tokenlist *tl)
                Fc(tl, 0, "  [%3u] = { %d, %8u, %4u, %3u, 0, \"%.*s\" },\n",
                    t->cnt, sp->idx, t->b - sp->b, lin, pos + 1, PF(t));
        }
+       Fc(tl, 0, "  { 0, 0, 0, 0, 0, 0 }\n");
        Fc(tl, 0, "};\n");
 }