mirror of https://github.com/ARMmbed/mbed-os.git
Remove build warnings in LWIP
parent
20d93bf78d
commit
54980546ce
|
|
@ -358,7 +358,6 @@ tcp_close_shutdown_fin(struct tcp_pcb *pcb)
|
||||||
default:
|
default:
|
||||||
/* Has already been closed, do nothing. */
|
/* Has already been closed, do nothing. */
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err == ERR_OK) {
|
if (err == ERR_OK) {
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,9 @@ static int get_ip_addr_type(const ip_addr_t *ip_addr)
|
||||||
return IPADDR_TYPE_V4;
|
return IPADDR_TYPE_V4;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if LWIP_IPV6 && LWIP_IPV4
|
||||||
return IPADDR_TYPE_ANY;
|
return IPADDR_TYPE_ANY;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void add_dns_addr(struct netif *lwip_netif)
|
void add_dns_addr(struct netif *lwip_netif)
|
||||||
|
|
@ -658,7 +660,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
|
||||||
if (!netif_is_link_up(&lwip_netif)) {
|
if (!netif_is_link_up(&lwip_netif)) {
|
||||||
if (sys_arch_sem_wait(&lwip_netif_linked, 15000) == SYS_ARCH_TIMEOUT) {
|
if (sys_arch_sem_wait(&lwip_netif_linked, 15000) == SYS_ARCH_TIMEOUT) {
|
||||||
if (ppp) {
|
if (ppp) {
|
||||||
ppp_lwip_disconnect();
|
(void) ppp_lwip_disconnect();
|
||||||
}
|
}
|
||||||
return NSAPI_ERROR_NO_CONNECTION;
|
return NSAPI_ERROR_NO_CONNECTION;
|
||||||
}
|
}
|
||||||
|
|
@ -686,7 +688,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
|
||||||
if (!mbed_lwip_get_ip_addr(true, &lwip_netif)) {
|
if (!mbed_lwip_get_ip_addr(true, &lwip_netif)) {
|
||||||
if (sys_arch_sem_wait(&lwip_netif_has_any_addr, DHCP_TIMEOUT * 1000) == SYS_ARCH_TIMEOUT) {
|
if (sys_arch_sem_wait(&lwip_netif_has_any_addr, DHCP_TIMEOUT * 1000) == SYS_ARCH_TIMEOUT) {
|
||||||
if (ppp) {
|
if (ppp) {
|
||||||
ppp_lwip_disconnect();
|
(void) ppp_lwip_disconnect();
|
||||||
}
|
}
|
||||||
return NSAPI_ERROR_DHCP_FAILURE;
|
return NSAPI_ERROR_DHCP_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue