From c81d0f3393cac5a1623eabfd88df312e0f118e27 Mon Sep 17 00:00:00 2001 From: marcbou Date: Thu, 16 Aug 2007 20:50:43 +0000 Subject: [PATCH] fix ethernet_input() return code warning. --- src/api/tcpip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/tcpip.c b/src/api/tcpip.c index ae68221c..87a31fad 100644 --- a/src/api/tcpip.c +++ b/src/api/tcpip.c @@ -214,7 +214,7 @@ igmp_timer(void *arg) * @param p the recevied packet, p->payload pointing to the ethernet header * @param netif the network interface on which the packet was received */ -static void +static err_t ethernet_input(struct pbuf *p, struct netif *netif) { struct eth_hdr* ethhdr; @@ -259,6 +259,8 @@ ethernet_input(struct pbuf *p, struct netif *netif) p = NULL; break; } + + return ERR_OK; /* return value ignored */ } #endif /* ETHARP_TCPIP_ETHINPUT */