make autoip_supplied_address() take a const pointer, too

This commit is contained in:
sg 2016-04-05 20:38:11 +02:00
parent 083c6123d6
commit 0731eda0b3
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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
}