Hi there,

Here a tiny change to make every OS "happy" when displaying the extra bytes.

Hope it s good enough.

Kind regards.
From edb65e47c6230d23d1078e41a603b7e5df3c9ac6 Mon Sep 17 00:00:00 2001
From: David Carlier <devne...@gmail.com>
Date: Mon, 26 Nov 2018 15:02:38 +0000
Subject: [PATCH] BUILD/SMALL: htx: Fix compilation warning.

On some systems uint64_t is an unsigned long long but in this
case considering is an unsigned long to display extra bytes
should be enough.
---
 include/proto/htx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/proto/htx.h b/include/proto/htx.h
index 91a2086a..dd525fed 100644
--- a/include/proto/htx.h
+++ b/include/proto/htx.h
@@ -443,7 +443,7 @@ static inline void htx_dump(struct htx *htx)
         fprintf(stderr, "htx:%p [ size=%u - data=%u - used=%u - wrap=%s - extra=%lu]\n",
                 htx, htx->size, htx->data, htx->used,
                 (!htx->used || htx->tail+1 == htx->wrap) ? "NO" : "YES",
-		htx->extra);
+		(unsigned long)htx->extra);
         fprintf(stderr, "\thead=%d - tail=%u - front=%u - wrap=%u\n",
                 htx_get_head(htx), htx->tail, htx->front, htx->wrap);
 
-- 
2.19.1

Reply via email to