From 5ac4c2c867a18fcf671ae46928a50a26be7d0763 Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Thu, 1 Oct 2015 16:10:23 +0200 Subject: [PATCH] Target cooja: fixed funciton prototype of uip_driver_send --- platform/cooja/net/uip-driver.c | 4 ++++ platform/cooja/net/uip-driver.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/platform/cooja/net/uip-driver.c b/platform/cooja/net/uip-driver.c index 1b2fb5c4d..896550f93 100644 --- a/platform/cooja/net/uip-driver.c +++ b/platform/cooja/net/uip-driver.c @@ -45,7 +45,11 @@ /*--------------------------------------------------------------------*/ uint8_t +#if NETSTACK_CONF_WITH_IPV6 +uip_driver_send(const uip_lladdr_t *addr) +#else uip_driver_send(void) +#endif { packetbuf_copyfrom(&uip_buf[UIP_LLH_LEN], uip_len); diff --git a/platform/cooja/net/uip-driver.h b/platform/cooja/net/uip-driver.h index 2a9c4b191..a711313b8 100644 --- a/platform/cooja/net/uip-driver.h +++ b/platform/cooja/net/uip-driver.h @@ -41,7 +41,11 @@ #include "net/netstack.h" +#if NETSTACK_CONF_WITH_IPV6 +uint8_t uip_driver_send(const uip_lladdr_t *); +#else uint8_t uip_driver_send(void); +#endif extern const struct network_driver uip_driver;