From: phk Date: Mon, 9 Apr 2007 21:03:12 +0000 (+0000) Subject: Fix stylistic Flexelint unhappiness with the compiled C source. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec5b0284448337f892870489086f687b8b090b57;p=varnish Fix stylistic Flexelint unhappiness with the compiled C source. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1310 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index 23619b38..66504a13 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -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"); }