[4.0] 13ff334 Fix printf formats for MacOS 10.9.4

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:23 CEST 2014


commit 13ff334d699311a3e62b7db215797ea15cbe5b7d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jul 31 09:16:58 2014 +0000

    Fix printf formats for MacOS 10.9.4
    
    Reported by:	Meng Zhang

diff --git a/bin/varnishd/cache/cache_http1_fsm.c b/bin/varnishd/cache/cache_http1_fsm.c
index 4bf643d..d83d522 100644
--- a/bin/varnishd/cache/cache_http1_fsm.c
+++ b/bin/varnishd/cache/cache_http1_fsm.c
@@ -706,12 +706,12 @@ HTTP1_CacheReqBody(struct req *req, ssize_t maxsize)
 		http_Unset(req->http0, H_Content_Length);
 		http_Unset(req->http0, H_Transfer_Encoding);
 		http_PrintfHeader(req->http0, "Content-Length: %ju",
-		    req->req_bodybytes);
+		    (uintmax_t)req->req_bodybytes);
 
 		http_Unset(req->http, H_Content_Length);
 		http_Unset(req->http, H_Transfer_Encoding);
 		http_PrintfHeader(req->http, "Content-Length: %ju",
-		    req->req_bodybytes);
+		    (uintmax_t)req->req_bodybytes);
 
 		req->req_body_status = REQ_BODY_CACHED;
 	}



More information about the varnish-commit mailing list