From ef29551e773fd047f855c0922f002d67f18c1ca8 Mon Sep 17 00:00:00 2001 From: Joan Lledó Date: Sun, 31 Mar 2019 19:55:39 +0200 Subject: lwip: Use the right error type. Use lwip's err_t as return type for functions called from lwip and error_t for functions called from the translator. * lwip/io-ops.c: Include * as is not being included for other headers anymore. * lwip/lwip-util.h: Likewise. * lwip/port/include/netif/hurdethif.h: * Include * Change the return type of the init function to err_t. * lwip/port/include/netif/hurdloopif.h: Liekwise. * lwip/port/include/netif/hurdtunif.h: Likewise. * lwip/port/include/netif/ifcommon.h: Likewise. * lwip/port/netif/ifcommon.c: Likewise. * lwip/port/netif/hurdloopif.c: * Include * Change output function return type to err_t. * Return lwip's err_t codes. * lwip/port/netif/hurdethif.c: * Include * Change init function return type to err_t. * Change output function return type to err_t. * Return lwip's err_t codes. * lwip/port/netif/hurdtunif.c: Likewise. Message-Id: <20190331175541.7095-3-jlledom@member.fsf.org> --- lwip/port/netif/ifcommon.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lwip/port/netif/ifcommon.c') diff --git a/lwip/port/netif/ifcommon.c b/lwip/port/netif/ifcommon.c index c6179683..5a1c68a2 100644 --- a/lwip/port/netif/ifcommon.c +++ b/lwip/port/netif/ifcommon.c @@ -23,6 +23,7 @@ #include #include +#include #include @@ -70,8 +71,8 @@ if_close (struct netif *netif) * This function doesn't assume there's a device nor tries to open it. * If a device is present, it must be opened from the ifc->init() callback. */ -error_t -if_init (struct netif * netif) +err_t +if_init (struct netif *netif) { struct ifcommon *ifc = netif_get_state (netif); -- cgit v1.2.3