aboutsummaryrefslogtreecommitdiff
path: root/lwip/port/netif/ifcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'lwip/port/netif/ifcommon.c')
-rw-r--r--lwip/port/netif/ifcommon.c5
1 files changed, 3 insertions, 2 deletions
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 <netif/ifcommon.h>
#include <net/if.h>
+#include <errno.h>
#include <lwip/netifapi.h>
@@ -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);