r1310 - trunk/varnish-cache/lib/libvcl

phk at projects.linpro.no phk at projects.linpro.no
Mon Apr 9 23:03:12 CEST 2007


Author: phk
Date: 2007-04-09 23:03:12 +0200 (Mon, 09 Apr 2007)
New Revision: 1310

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_compile.c
Log:
Fix stylistic Flexelint unhappiness with the compiled C source.


Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.c	2007-04-09 20:50:12 UTC (rev 1309)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.c	2007-04-09 21:03:12 UTC (rev 1310)
@@ -302,7 +302,6 @@
 	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 @@
 		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");
 }
 




More information about the varnish-commit mailing list