From c7035f769f5cf0c697b35fb79730aa27b8a9a475 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 18 Oct 2007 11:10:25 +0000 Subject: [PATCH] I like code that compiles git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2111 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt_esi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_vrt_esi.c b/varnish-cache/bin/varnishd/cache_vrt_esi.c index 0e1cff1b..a5ae57db 100644 --- a/varnish-cache/bin/varnishd/cache_vrt_esi.c +++ b/varnish-cache/bin/varnishd/cache_vrt_esi.c @@ -58,7 +58,7 @@ static void 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 @@ vxml_error(struct sess *sp, const char *p, txt t, size_t off, int i, const char 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; -- 2.39.5