mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
netif_find(): name parameter can be const
This commit is contained in:
parent
614fa7b853
commit
13801ebd74
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user