[master] c79c30b Fix printf formats for MacOS 10.9.4

Poul-Henning Kamp phk at FreeBSD.org
Thu Jul 31 11:17:31 CEST 2014


commit c79c30bcdb9b29c6bec346e3d071611f2dea60fc
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 66063be..4290c47 100644
--- a/bin/varnishd/cache/cache_http1_fsm.c
+++ b/bin/varnishd/cache/cache_http1_fsm.c
@@ -705,12 +705,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