mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 11:16:57 +00:00
lwip: prevent warnings
Thanks to Menno Valkema for the patch.
This commit is contained in:
parent
511acad507
commit
d891016632
@ -1 +1 @@
|
|||||||
136ee70f33ffced072262d589c24ab3252d15eff
|
cbf1fff1bec6b6033825f81d863bdcd1a6060ed5
|
||||||
|
@ -15,6 +15,7 @@ PATCHES := $(addprefix src/lib/lwip/,window_scaling.patch \
|
|||||||
libc_select_notify.patch \
|
libc_select_notify.patch \
|
||||||
sockets_c_errno.patch \
|
sockets_c_errno.patch \
|
||||||
sol_socket_definition.patch \
|
sol_socket_definition.patch \
|
||||||
|
remove_warnings.patch \
|
||||||
api_msg.patch)
|
api_msg.patch)
|
||||||
|
|
||||||
PATCH_OPT := -p1 -d src/lib/lwip
|
PATCH_OPT := -p1 -d src/lib/lwip
|
||||||
|
26
repos/libports/src/lib/lwip/remove_warnings.patch
Normal file
26
repos/libports/src/lib/lwip/remove_warnings.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/src/core/dhcp.c b/src/core/dhcp.c
|
||||||
|
index 21fd784..d85d86c 100644
|
||||||
|
--- a/src/core/dhcp.c
|
||||||
|
+++ b/src/core/dhcp.c
|
||||||
|
@@ -982,7 +982,7 @@ dhcp_bind(struct netif *netif)
|
||||||
|
|
||||||
|
ip_addr_copy(gw_addr, dhcp->offered_gw_addr);
|
||||||
|
/* gateway address not given? */
|
||||||
|
- if (ip_addr_isany(&gw_addr)) {
|
||||||
|
+ if (gw_addr.addr == IPADDR_ANY) {
|
||||||
|
/* copy network address */
|
||||||
|
ip_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask);
|
||||||
|
/* use first host address on network as gateway */
|
||||||
|
diff --git a/src/include/ipv4/lwip/ip4_addr.h b/src/include/ipv4/lwip/ip4_addr.h
|
||||||
|
index b05ae53..dc0d9a8 100644
|
||||||
|
--- a/src/include/ipv4/lwip/ip4_addr.h
|
||||||
|
+++ b/src/include/ipv4/lwip/ip4_addr.h
|
||||||
|
@@ -210,7 +210,7 @@ u8_t ip4_addr_netmask_valid(u32_t netmask);
|
||||||
|
#define ip_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe0000UL))
|
||||||
|
|
||||||
|
#define ip_addr_debug_print(debug, ipaddr) \
|
||||||
|
- LWIP_DEBUGF(debug, ("%"U16_F".%"U16_F".%"U16_F".%"U16_F, \
|
||||||
|
+ LWIP_DEBUGF(debug, ("%" U16_F ".%" U16_F ".%" U16_F ".%" U16_F, \
|
||||||
|
ipaddr != NULL ? ip4_addr1_16(ipaddr) : 0, \
|
||||||
|
ipaddr != NULL ? ip4_addr2_16(ipaddr) : 0, \
|
||||||
|
ipaddr != NULL ? ip4_addr3_16(ipaddr) : 0, \
|
Loading…
Reference in New Issue
Block a user