Fix typos from task #12243

This fixes two typos spotted during visual inspection of changes related
to task #12243
This commit is contained in:
Joel Cunningham 2015-09-14 13:30:22 -05:00 committed by sg
parent 4704c9a0ad
commit 7276f49f54
2 changed files with 3 additions and 3 deletions

View File

@ -290,9 +290,9 @@ lwip_getaddrinfo(const char *nodename, const char *servname,
#if LWIP_IPV4
&& (ai_family != AF_INET)
#endif /* LWIP_IPV4 */
#if LWIP_IPV4
#if LWIP_IPV6
&& (ai_family != AF_INET6)
#endif /* LWIP_IPV4 */
#endif /* LWIP_IPV6 */
) {
return EAI_FAMILY;
}

View File

@ -1478,7 +1478,7 @@ dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr, dns_found_call
return ERR_OK;
}
#if LWIP_IPV4 && LWIP_IPV6
if ((dns_addrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6) || (dns_addrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6)) {
if ((dns_addrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6) || (dns_addrtype == LWIP_DNS_ADDRTYPE_IPV6_IPV4)) {
/* fallback to 2nd IP type and try again to lookup */
u8_t fallback;
if (dns_addrtype == LWIP_DNS_ADDRTYPE_IPV4_IPV6) {