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
*/
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) ||