mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Apply [patch #8969] from Freddie Chopin: Constify netif in dhcp_supplied_address()
This commit is contained in:
parent
3a26e8b6cc
commit
12a4cae404
@ -1889,7 +1889,7 @@ dhcp_option_trailer(struct dhcp *dhcp)
|
||||
* 0 otherwise
|
||||
*/
|
||||
u8_t
|
||||
dhcp_supplied_address(struct netif *netif)
|
||||
dhcp_supplied_address(const struct netif *netif)
|
||||
{
|
||||
if ((netif != NULL) && (netif->dhcp != NULL)) {
|
||||
if ((netif->dhcp->state == DHCP_STATE_BOUND) ||
|
||||
|
@ -159,7 +159,7 @@ void dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr);
|
||||
#endif
|
||||
|
||||
/** 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 */
|
||||
void dhcp_coarse_tmr(void);
|
||||
|
Loading…
Reference in New Issue
Block a user