Apply [patch #8969] from Freddie Chopin: Constify netif in dhcp_supplied_address()

This commit is contained in:
Dirk Ziegelmeier 2016-04-05 13:18:27 +02:00
parent 3a26e8b6cc
commit 12a4cae404
2 changed files with 2 additions and 2 deletions

View File

@ -1889,7 +1889,7 @@ dhcp_option_trailer(struct dhcp *dhcp)
* 0 otherwise * 0 otherwise
*/ */
u8_t u8_t
dhcp_supplied_address(struct netif *netif) dhcp_supplied_address(const struct netif *netif)
{ {
if ((netif != NULL) && (netif->dhcp != NULL)) { if ((netif != NULL) && (netif->dhcp != NULL)) {
if ((netif->dhcp->state == DHCP_STATE_BOUND) || if ((netif->dhcp->state == DHCP_STATE_BOUND) ||

View File

@ -159,7 +159,7 @@ void dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr);
#endif #endif
/** check if DHCP supplied netif->ip_addr */ /** check if DHCP supplied netif->ip_addr */
u8_t dhcp_supplied_address(struct netif *netif); u8_t dhcp_supplied_address(const struct netif *netif);
/** to be called every minute */ /** to be called every minute */
void dhcp_coarse_tmr(void); void dhcp_coarse_tmr(void);