mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Cleanup netif_name_to_index() implementation
This commit is contained in:
parent
0545eba002
commit
eab2ae5d78
@ -1433,7 +1433,7 @@ netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipa
|
|||||||
/**
|
/**
|
||||||
* @ingroup netif
|
* @ingroup netif
|
||||||
* Return the interface index for the netif with name
|
* Return the interface index for the netif with name
|
||||||
* or 0 (invalid interface) if not found/on error
|
* or NETIF_NO_INDEX if not found/on error
|
||||||
*
|
*
|
||||||
* @param name the name of the netif
|
* @param name the name of the netif
|
||||||
*/
|
*/
|
||||||
@ -1445,7 +1445,7 @@ netif_name_to_index(const char *name)
|
|||||||
return netif_get_index(netif);
|
return netif_get_index(netif);
|
||||||
}
|
}
|
||||||
/* No name found, return invalid index */
|
/* No name found, return invalid index */
|
||||||
return 0;
|
return NETIF_NO_INDEX;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user