mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08: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')
|
* in ascii representation (e.g. 'en0')
|
||||||
*/
|
*/
|
||||||
struct netif *
|
struct netif *
|
||||||
netif_find(char *name)
|
netif_find(const char *name)
|
||||||
{
|
{
|
||||||
struct netif *netif;
|
struct netif *netif;
|
||||||
u8_t num;
|
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
|
"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
|
netif structure, and the digit is in the num field in the same
|
||||||
structure. */
|
structure. */
|
||||||
struct netif *netif_find(char *name);
|
struct netif *netif_find(const char *name);
|
||||||
|
|
||||||
void netif_set_default(struct netif *netif);
|
void netif_set_default(struct netif *netif);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user