r1353 - in branches/1.0: . lib/libvcl

des at projects.linpro.no des at projects.linpro.no
Thu Apr 19 16:51:18 CEST 2007


Author: des
Date: 2007-04-19 16:51:18 +0200 (Thu, 19 Apr 2007)
New Revision: 1353

Modified:
   branches/1.0/
   branches/1.0/lib/libvcl/vcc_compile.c
Log:
 r37086 at cat (orig r1310):  phk | 2007-04-09 23:03:12 +0200
 Fix stylistic Flexelint unhappiness with the compiled C source.
 



Property changes on: branches/1.0
___________________________________________________________________
Name: svk:merge
   - d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1309
   + d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1310

Modified: branches/1.0/lib/libvcl/vcc_compile.c
===================================================================
--- branches/1.0/lib/libvcl/vcc_compile.c	2007-04-19 14:51:17 UTC (rev 1352)
+++ branches/1.0/lib/libvcl/vcc_compile.c	2007-04-19 14:51:18 UTC (rev 1353)
@@ -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