From 0731eda0b347e7b98b3b26a74a2448e8ee8d31bf Mon Sep 17 00:00:00 2001 From: sg Date: Tue, 5 Apr 2016 20:38:11 +0200 Subject: [PATCH] make autoip_supplied_address() take a const pointer, too --- src/core/ipv4/autoip.c | 2 +- src/include/lwip/autoip.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ipv4/autoip.c b/src/core/ipv4/autoip.c index 19b19283..f9c8f794 100644 --- a/src/core/ipv4/autoip.c +++ b/src/core/ipv4/autoip.c @@ -531,7 +531,7 @@ autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) * 0 otherwise */ u8_t -autoip_supplied_address(struct netif *netif) +autoip_supplied_address(const struct netif *netif) { if ((netif != NULL) && (netif->autoip != NULL)) { if (netif->autoip->state == AUTOIP_STATE_BOUND) { diff --git a/src/include/lwip/autoip.h b/src/include/lwip/autoip.h index c89fe3ff..b1d79beb 100644 --- a/src/include/lwip/autoip.h +++ b/src/include/lwip/autoip.h @@ -113,7 +113,7 @@ void autoip_tmr(void); void autoip_network_changed(struct netif *netif); /** check if AutoIP supplied netif->ip_addr */ -u8_t autoip_supplied_address(struct netif *netif); +u8_t autoip_supplied_address(const struct netif *netif); #ifdef __cplusplus }