From eab2ae5d789fc888d5de62f9995834afaf1d96ff Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 2 May 2017 12:51:25 +0200 Subject: [PATCH] Cleanup netif_name_to_index() implementation --- src/core/netif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/netif.c b/src/core/netif.c index 7b16e723..f9b60077 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -1433,7 +1433,7 @@ netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipa /** * @ingroup netif * 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 */ @@ -1445,7 +1445,7 @@ netif_name_to_index(const char *name) return netif_get_index(netif); } /* No name found, return invalid index */ - return 0; + return NETIF_NO_INDEX; } /**