From 2f2967173ba0b0a4f7ab013edeaaf11e7c181beb Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 3 Mar 2014 09:51:36 +0100 Subject: hashtabletest: Fix warning: format ‘%ld’ expects argument of type ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following compiler warning: hashtabletest.c: In function ‘print_xid’: hashtabletest.c:15:5: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘XID’ [-Wformat=] printf("%ld", *x); ^ Signed-off-by: Hans de Goede Reviewed-by: Eric Anholt --- test/hashtabletest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/hashtabletest.c b/test/hashtabletest.c index ceadfa7a3..86a0c58c6 100644 --- a/test/hashtabletest.c +++ b/test/hashtabletest.c @@ -12,7 +12,7 @@ static void print_xid(void* ptr, void* v) { XID *x = v; - printf("%ld", *x); + printf("%ld", (long)(*x)); } static void -- cgit v1.2.3