[master] 8b9e46f Cast to intmax_t for printf
Poul-Henning Kamp
phk at varnish-cache.org
Tue Jan 25 10:00:14 CET 2011
commit 8b9e46f8ae4a0a733cf2cb86a5f48414844d930d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jan 25 08:59:47 2011 +0000
Cast to intmax_t for printf
diff --git a/bin/varnishd/cache_esi_deliver.c b/bin/varnishd/cache_esi_deliver.c
index 6695dee..b16c345 100644
--- a/bin/varnishd/cache_esi_deliver.c
+++ b/bin/varnishd/cache_esi_deliver.c
@@ -134,7 +134,7 @@ ved_sendchunk(const struct sess *sp, const void *cb, ssize_t cl,
assert(l > 0);
if (sp->wrk->res_mode & RES_CHUNKED) {
if (cb == NULL) {
- bprintf(chunk, "%jx\r\n", l);
+ bprintf(chunk, "%jx\r\n", (intmax_t)l);
(void)WRW_Write(sp->wrk, chunk, -1);
} else
(void)WRW_Write(sp->wrk, cb, cl);
More information about the varnish-commit
mailing list