From 15ebc2570414b3d7e13f120a156edca572c44667 Mon Sep 17 00:00:00 2001 From: witekfl Date: Wed, 8 Aug 2012 22:28:04 +0200 Subject: [PATCH] Avoid compilation warning on Windows. --- src/document/document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/document.c b/src/document/document.c index 074e128d..b227593a 100644 --- a/src/document/document.c +++ b/src/document/document.c @@ -69,11 +69,11 @@ static INIT_LIST_OF(struct document, format_cache); +#ifdef HAVE_INET_NTOP /* DNS callback. */ static void found_dns(void *data, struct sockaddr_storage *addr, int addrlen) { -#ifdef HAVE_INET_NTOP unsigned char buf[64]; const unsigned char *res; struct sockaddr *s; @@ -91,8 +91,8 @@ found_dns(void *data, struct sockaddr_storage *addr, int addrlen) if (res) { *ip = stracpy(res); } -#endif } +#endif static void get_ip(struct document *document)