mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 15:16:02 +00:00
API: netdb: replaced deprecated ip_ntoa() to ipaddr_ntoa()
This commit is contained in:
parent
af722a2978
commit
969306f0f1
|
@ -124,7 +124,7 @@ lwip_gethostbyname(const char *name)
|
||||||
u8_t idx;
|
u8_t idx;
|
||||||
for ( idx=0; s_hostent.h_addr_list[idx]; idx++) {
|
for ( idx=0; s_hostent.h_addr_list[idx]; idx++) {
|
||||||
LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i] == %p\n", idx, s_hostent.h_addr_list[idx]));
|
LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i] == %p\n", idx, s_hostent.h_addr_list[idx]));
|
||||||
LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ip_ntoa((ip_addr_t*)s_hostent.h_addr_list[idx])));
|
LWIP_DEBUGF(DNS_DEBUG, ("hostent.h_addr_list[%i]-> == %s\n", idx, ipaddr_ntoa((ip_addr_t*)s_hostent.h_addr_list[idx])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* DNS_DEBUG */
|
#endif /* DNS_DEBUG */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user