mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-10 03:39:55 +00:00
Minot: Fixed comments and code style
This commit is contained in:
parent
848debf999
commit
f74cebcbcd
@ -971,16 +971,16 @@ dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback foun
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if LWIP_HAVE_LOOPIF
|
#if LWIP_HAVE_LOOPIF
|
||||||
if (strcmp(hostname,"localhost")==0) {
|
if (strcmp(hostname, "localhost")==0) {
|
||||||
ip_addr_set_loopback(addr);
|
ip_addr_set_loopback(addr);
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_HAVE_LOOPIF */
|
#endif /* LWIP_HAVE_LOOPIF */
|
||||||
|
|
||||||
/* host name already in octet notation? set ip addr and return ERR_OK
|
/* host name already in octet notation? set ip addr and return ERR_OK */
|
||||||
* already have this address cached? */
|
|
||||||
ipaddr = ipaddr_addr(hostname);
|
ipaddr = ipaddr_addr(hostname);
|
||||||
if (ipaddr == IPADDR_NONE) {
|
if (ipaddr == IPADDR_NONE) {
|
||||||
|
/* already have this address cached? */
|
||||||
ipaddr = dns_lookup(hostname);
|
ipaddr = dns_lookup(hostname);
|
||||||
}
|
}
|
||||||
if (ipaddr != IPADDR_NONE) {
|
if (ipaddr != IPADDR_NONE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user