From 9fd82224796bd92c23147cbf0cbc864caddc1296 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sat, 21 Apr 2018 08:22:51 +0800 Subject: [PATCH] etharp: Cast the return value of etharp_find_entry to s8_t instead of err_t etharp_find_entry() returns s8_t rather than err_t. Signed-off-by: Axel Lin --- src/core/ipv4/etharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/etharp.c b/src/core/ipv4/etharp.c index 07c1794a..ffff8081 100644 --- a/src/core/ipv4/etharp.c +++ b/src/core/ipv4/etharp.c @@ -399,7 +399,7 @@ etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif) #if ETHARP_TABLE_MATCH_NETIF arp_table[i].netif = netif; #endif /* ETHARP_TABLE_MATCH_NETIF*/ - return (err_t)i; + return (s8_t)i; } /**