r3410 - in trunk/varnish-cache/lib: libvarnish libvcl

phk at projects.linpro.no phk at projects.linpro.no
Thu Nov 20 11:19:56 CET 2008


Author: phk
Date: 2008-11-20 11:19:56 +0100 (Thu, 20 Nov 2008)
New Revision: 3410

Modified:
   trunk/varnish-cache/lib/libvarnish/vss.c
   trunk/varnish-cache/lib/libvcl/vcc_parse.c
   trunk/varnish-cache/lib/libvcl/vcc_xref.c
Log:
Various nits.



Modified: trunk/varnish-cache/lib/libvarnish/vss.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/vss.c	2008-11-20 10:03:53 UTC (rev 3409)
+++ trunk/varnish-cache/lib/libvarnish/vss.c	2008-11-20 10:19:56 UTC (rev 3410)
@@ -155,7 +155,7 @@
 	XXXAN(va);
 	*vap = va;
 	for (res = res0, i = 0; res != NULL; res = res->ai_next, ++i) {
-		va[i] = calloc(1, sizeof *va[i]);
+		va[i] = calloc(1, sizeof(*va[i]));
 		XXXAN(va[i]);
 		va[i]->va_family = res->ai_family;
 		va[i]->va_socktype = res->ai_socktype;

Modified: trunk/varnish-cache/lib/libvcl/vcc_parse.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_parse.c	2008-11-20 10:03:53 UTC (rev 3409)
+++ trunk/varnish-cache/lib/libvcl/vcc_parse.c	2008-11-20 10:19:56 UTC (rev 3410)
@@ -127,7 +127,7 @@
 static double
 RateUnit(struct tokenlist *tl)
 {
-	double sc = 1.0;
+	double sc;
 
 	assert(tl->t->tok == ID);
 	sc = SizeUnit(tl);

Modified: trunk/varnish-cache/lib/libvcl/vcc_xref.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_xref.c	2008-11-20 10:03:53 UTC (rev 3409)
+++ trunk/varnish-cache/lib/libvcl/vcc_xref.c	2008-11-20 10:19:56 UTC (rev 3410)
@@ -28,7 +28,7 @@
  *
  * $Id$
  *
- * This fine contains code for two cross-reference or consistency checks.
+ * This file contains code for two cross-reference or consistency checks.
  *
  * The first check is simply that all functions, acls and backends are
  * both defined and referenced.  Complaints about referenced but undefined
@@ -90,7 +90,7 @@
 		vcc_ErrToken(tl, r->name);
 		vsb_printf(tl->sb, " has unknown type %d\n",
 		    r->type);
-		return "???";
+		return "?";
 	}
 }
 



More information about the varnish-commit mailing list