From f74cebcbcd5cf6ab107acf12976f890fd10f666c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 8 Feb 2010 16:53:47 +0000 Subject: [PATCH] Minot: Fixed comments and code style --- src/core/dns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/dns.c b/src/core/dns.c index 3b0c5b9f..df6ef7d8 100644 --- a/src/core/dns.c +++ b/src/core/dns.c @@ -971,16 +971,16 @@ dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback foun } #if LWIP_HAVE_LOOPIF - if (strcmp(hostname,"localhost")==0) { + if (strcmp(hostname, "localhost")==0) { ip_addr_set_loopback(addr); return ERR_OK; } #endif /* LWIP_HAVE_LOOPIF */ - /* host name already in octet notation? set ip addr and return ERR_OK - * already have this address cached? */ + /* host name already in octet notation? set ip addr and return ERR_OK */ ipaddr = ipaddr_addr(hostname); if (ipaddr == IPADDR_NONE) { + /* already have this address cached? */ ipaddr = dns_lookup(hostname); } if (ipaddr != IPADDR_NONE) {