r2111 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Thu Oct 18 13:10:25 CEST 2007


Author: des
Date: 2007-10-18 13:10:25 +0200 (Thu, 18 Oct 2007)
New Revision: 2111

Modified:
   trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c
Log:
I like code that compiles


Modified: trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c	2007-10-17 08:32:19 UTC (rev 2110)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c	2007-10-18 11:10:25 UTC (rev 2111)
@@ -58,7 +58,7 @@
 add_piece(txt t, int kind)
 {
 
-	printf("K%d \"%.*s\"\n", kind, t.e - t.b, t.b);
+	printf("K%d \"%.*s\"\n", kind, (int)(t.e - t.b), t.b);
 }
 
 static void
@@ -75,7 +75,7 @@
 		ellipsis = 1;
 	}
 	q = buf;
-	q += sprintf(buf, "at %d: %s \"", off + (p - t.b), err);
+	q += sprintf(buf, "at %d: %s \"", (int)(off + (p - t.b)), err);
 	while (i > 0) {
 		if (*p >= ' ' && *p <= '~') {
 			*q++ = *p;




More information about the varnish-commit mailing list