From abc74464a0a93f960b9f013f5ceab3907009c86e Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 22 Sep 2015 11:42:41 +0200 Subject: [PATCH] Revert "make netif_ip4_addr/netmask/gw macros return constant IP address pointers" This reverts commit b9b31a5e72ef00315f43f838172492696359071d. --- src/include/lwip/netif.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/lwip/netif.h b/src/include/lwip/netif.h index 9200b6c0..7bd4caef 100644 --- a/src/include/lwip/netif.h +++ b/src/include/lwip/netif.h @@ -349,9 +349,9 @@ void netif_set_default(struct netif *netif); void netif_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr); void netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask); void netif_set_gw(struct netif *netif, const ip4_addr_t *gw); -#define netif_ip4_addr(netif) ((const ip4_addr_t*)&((netif)->ip_addr)) -#define netif_ip4_netmask(netif) ((const ip4_addr_t*)&((netif)->netmask)) -#define netif_ip4_gw(netif) ((const ip4_addr_t*)&((netif)->gw)) +#define netif_ip4_addr(netif) (&((netif)->ip_addr)) +#define netif_ip4_netmask(netif) (&((netif)->netmask)) +#define netif_ip4_gw(netif) (&((netif)->gw)) #endif /* LWIP_IPV4 */ void netif_set_up(struct netif *netif);