>From da37c3e23168cf3a84bd26b073144cc1d064dc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Gonz=C3=A1lez?= Date: Wed, 14 Nov 2012 17:40:02 +0100 Subject: [PATCH] Fix warning about format '%p' expecting an argument of type 'void *', but being given a 'struct address_list *'. --- src/ChangeLog | 2 ++ src/host.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 32a339d..98aac1d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,8 @@ 2012-11-14 Ángel González * warc.c (warc_sha1_stream_with_payload): Fix compilation under gcc -std=c89 + * host.c (cache_query): Fix warning about format '%p' expecting + an argument of type 'void *', but being given a 'struct address_list *' 2012-11-13 Giuseppe Scrivano diff --git a/src/host.c b/src/host.c index 86bf83b..041050b 100644 --- a/src/host.c +++ b/src/host.c @@ -592,7 +592,7 @@ cache_query (const char *host) al = hash_table_get (host_name_addresses_map, host); if (al) { - DEBUGP (("Found %s in host_name_addresses_map (%p)\n", host, al)); + DEBUGP (("Found %s in host_name_addresses_map (%p)\n", host, (void*)al)); ++al->refcount; return al; } -- 1.8.0