netif_find(): name parameter can be const

This commit is contained in:
goldsimon 2015-08-03 13:47:25 +02:00
parent 614fa7b853
commit 13801ebd74
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);