<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>Sorry.  The diff in the previous email is wrong. Resent here.</div><div><br></div><div><div>From 52016e3dab92f617124964d275a6ea7c6157d220 Mon Sep 17 00:00:00 2001</div><div>From: ijammy <<a href="mailto:mzhang@yottaa.com">mzhang@yottaa.com</a>></div><div>Date: Wed, 30 Jul 2014 20:57:34 +0800</div><div>Subject: [PATCH] Eliminate the compiler complain against the format of</div><div> vsprintf, e.g. format specifies type 'uintmax_t' (aka 'unsigned long') but</div><div> the argument has type 'uint64_t' (aka 'unsigned long long')</div><div> [-Werror,-Wformat]</div><div><br></div><div>---</div><div> bin/varnishd/cache/cache_http1_fsm.c | 5 +++--</div><div> 1 file changed, 3 insertions(+), 2 deletions(-)</div><div><br></div><div>diff --git a/bin/varnishd/cache/cache_http1_fsm.c b/bin/varnishd/cache/cache_http1_fsm.c</div><div>index 66063be..940dd9f 100644</div><div>--- a/bin/varnishd/cache/cache_http1_fsm.c</div><div>+++ b/bin/varnishd/cache/cache_http1_fsm.c</div><div>@@ -72,6 +72,7 @@</div><div> #include <poll.h></div><div> #include <stdio.h></div><div> #include <stdlib.h></div><div>+#include <inttypes.h></div><div> </div><div> #include "cache.h"</div><div> #include "hash/hash_slinger.h"</div><div>@@ -704,12 +705,12 @@ HTTP1_CacheReqBody(struct req *req, ssize_t maxsize)</div><div> </div><div> <span class="Apple-tab-span" style="white-space:pre">               </span>http_Unset(req->http0, H_Content_Length);</div><div> <span class="Apple-tab-span" style="white-space:pre">           </span>http_Unset(req->http0, H_Transfer_Encoding);</div><div>-<span class="Apple-tab-span" style="white-space:pre">             </span>http_PrintfHeader(req->http0, "Content-Length: %ju",</div><div>+<span class="Apple-tab-span" style="white-space:pre">           </span>http_PrintfHeader(req->http0, "Content-Length: %"PRIu64,</div><div> <span class="Apple-tab-span" style="white-space:pre">          </span>    req->req_bodybytes);</div><div> </div><div> <span class="Apple-tab-span" style="white-space:pre">             </span>http_Unset(req->http, H_Content_Length);</div><div> <span class="Apple-tab-span" style="white-space:pre">            </span>http_Unset(req->http, H_Transfer_Encoding);</div><div>-<span class="Apple-tab-span" style="white-space:pre">              </span>http_PrintfHeader(req->http, "Content-Length: %ju",</div><div>+<span class="Apple-tab-span" style="white-space:pre">            </span>http_PrintfHeader(req->http, "Content-Length: %"PRIu64,</div><div> <span class="Apple-tab-span" style="white-space:pre">           </span>    req->req_bodybytes);</div><div> </div><div> <span class="Apple-tab-span" style="white-space:pre">             </span>req->req_body_status = REQ_BODY_CACHED;</div><div>-- </div><div>2.0.1.442.g7fe6834</div></div><div><br></div><div><br></div></body></html>