Browse Source

Fix compile errors in tunif.c introduced by my last commit (can't compile at work)

master
Dirk Ziegelmeier 8 years ago
parent
commit
068d0a828f
  1. 5
      ports/unix/port/netif/tunif.c

5
ports/unix/port/netif/tunif.c

@ -48,6 +48,7 @@
#include "lwip/def.h" #include "lwip/def.h"
#include "lwip/ip.h" #include "lwip/ip.h"
#include "lwip/mem.h" #include "lwip/mem.h"
#include "lwip/snmp.h"
#include "lwip/netif.h" #include "lwip/netif.h"
#include "lwip/pbuf.h" #include "lwip/pbuf.h"
#include "lwip/sys.h" #include "lwip/sys.h"
@ -122,7 +123,7 @@ low_level_init(struct netif *netif)
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
static err_t static err_t
low_level_output(struct tunif *tunif, struct pbuf *p) low_level_output(struct netif *netif, struct tunif *tunif, struct pbuf *p)
{ {
char buf[1500]; char buf[1500];
ssize_t written; ssize_t written;
@ -241,7 +242,7 @@ tunif_output(struct netif *netif, struct pbuf *p,
tunif = (struct tunif *)netif->state; tunif = (struct tunif *)netif->state;
return low_level_output(tunif, p); return low_level_output(netif, tunif, p);
} }
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/

Loading…
Cancel
Save