mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Avoid compilation warning on Windows.
This commit is contained in:
parent
9543ed96a4
commit
15ebc25704
@ -69,11 +69,11 @@
|
|||||||
|
|
||||||
static INIT_LIST_OF(struct document, format_cache);
|
static INIT_LIST_OF(struct document, format_cache);
|
||||||
|
|
||||||
|
#ifdef HAVE_INET_NTOP
|
||||||
/* DNS callback. */
|
/* DNS callback. */
|
||||||
static void
|
static void
|
||||||
found_dns(void *data, struct sockaddr_storage *addr, int addrlen)
|
found_dns(void *data, struct sockaddr_storage *addr, int addrlen)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_INET_NTOP
|
|
||||||
unsigned char buf[64];
|
unsigned char buf[64];
|
||||||
const unsigned char *res;
|
const unsigned char *res;
|
||||||
struct sockaddr *s;
|
struct sockaddr *s;
|
||||||
@ -91,8 +91,8 @@ found_dns(void *data, struct sockaddr_storage *addr, int addrlen)
|
|||||||
if (res) {
|
if (res) {
|
||||||
*ip = stracpy(res);
|
*ip = stracpy(res);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
get_ip(struct document *document)
|
get_ip(struct document *document)
|
||||||
|
Loading…
Reference in New Issue
Block a user