mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08: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
|
* 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) ||
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user