1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00

Avoid compilation warning on Windows.

This commit is contained in:
witekfl 2012-08-08 22:28:04 +02:00
parent 9543ed96a4
commit 15ebc25704

View File

@ -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)