diff --git a/src/core/netif.c b/src/core/netif.c index b771f348..bd63e58f 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -383,7 +383,7 @@ netif_remove(struct netif *netif) * in ascii representation (e.g. 'en0') */ struct netif * -netif_find(char *name) +netif_find(const char *name) { struct netif *netif; u8_t num; diff --git a/src/include/lwip/netif.h b/src/include/lwip/netif.h index 2aea2c2a..09ad65f0 100644 --- a/src/include/lwip/netif.h +++ b/src/include/lwip/netif.h @@ -334,7 +334,7 @@ void netif_remove(struct netif * netif); "et0", where the first two letters are the "name" field in the netif structure, and the digit is in the num field in the same structure. */ -struct netif *netif_find(char *name); +struct netif *netif_find(const char *name); void netif_set_default(struct netif *netif);