From c924567d86bdeed514f127bb74e251467f0a567c Mon Sep 17 00:00:00 2001 From: Antonio Lignan Date: Thu, 4 Feb 2016 00:25:53 +0100 Subject: [PATCH] Fix ip64 warnings --- core/net/ip64/ip64-eth-interface.c | 3 ++- core/net/ip64/ip64.c | 4 +++- dev/enc28j60/enc28j60-ip64-driver.c | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/net/ip64/ip64-eth-interface.c b/core/net/ip64/ip64-eth-interface.c index 026467137..437fbe24d 100644 --- a/core/net/ip64/ip64-eth-interface.c +++ b/core/net/ip64/ip64-eth-interface.c @@ -89,7 +89,6 @@ output(void) { int len, ret; - printf("ip64-interface: output source "); PRINT6ADDR(&UIP_IP_BUF->srcipaddr); PRINTF(" destination "); @@ -117,6 +116,8 @@ output(void) return IP64_ETH_DRIVER.output(ip64_packet_buffer, len); } } + + return 0; } /*---------------------------------------------------------------------------*/ const struct uip_fallback_interface ip64_eth_interface = { diff --git a/core/net/ip64/ip64.c b/core/net/ip64/ip64.c index 8483d9388..07d94db1b 100644 --- a/core/net/ip64/ip64.c +++ b/core/net/ip64/ip64.c @@ -897,11 +897,13 @@ interface_init(void) IP64_UIP_FALLBACK_INTERFACE.init(); } /*---------------------------------------------------------------------------*/ -static void +static int interface_output(void) { PRINTF("ip64: interface_output len %d\n", uip_len); IP64_UIP_FALLBACK_INTERFACE.output(); + + return 0; } /*---------------------------------------------------------------------------*/ const struct uip_fallback_interface ip64_uip_fallback_interface = { diff --git a/dev/enc28j60/enc28j60-ip64-driver.c b/dev/enc28j60/enc28j60-ip64-driver.c index f1804d998..71ed22739 100644 --- a/dev/enc28j60/enc28j60-ip64-driver.c +++ b/dev/enc28j60/enc28j60-ip64-driver.c @@ -35,6 +35,7 @@ #include "ip64.h" #include "ip64-eth.h" +#include "rime.h" #include #include