mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
Fix typos from task #12243
This fixes two typos spotted during visual inspection of changes related to task #12243
This commit is contained in:
parent
4704c9a0ad
commit
7276f49f54
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user