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 <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2018-04-21 08:22:51 +08:00
parent 9980d09bc8
commit 9fd8222479

View File

@ -399,7 +399,7 @@ etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif)
#if ETHARP_TABLE_MATCH_NETIF #if ETHARP_TABLE_MATCH_NETIF
arp_table[i].netif = netif; arp_table[i].netif = netif;
#endif /* ETHARP_TABLE_MATCH_NETIF*/ #endif /* ETHARP_TABLE_MATCH_NETIF*/
return (err_t)i; return (s8_t)i;
} }
/** /**