From 1bdff78e6e3c0682b8e264734cae2e3a97510c6e Mon Sep 17 00:00:00 2001 From: dak664 Date: Mon, 15 Feb 2010 20:54:37 +0000 Subject: [PATCH] Remove compiler warnings --- platform/avr-ravenusb/sicslow_ethernet.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/platform/avr-ravenusb/sicslow_ethernet.c b/platform/avr-ravenusb/sicslow_ethernet.c index 1ee302adf..a5daaf38e 100644 --- a/platform/avr-ravenusb/sicslow_ethernet.c +++ b/platform/avr-ravenusb/sicslow_ethernet.c @@ -249,7 +249,7 @@ #if UIP_CONF_SIMPLE_JACKDAW_ADDR_TRANS #define rndis_ethernet_addr local_ethernet_addr -static uint64_t local_ethernet_addr = 0x3A3B3C3D3E3F; +static uint64_t local_ethernet_addr = 0x3A3B3C3D3E3FULL; #else extern uint64_t rndis_ethernet_addr; #endif @@ -672,7 +672,6 @@ int8_t mac_translateIcmpLinkLayer(lltype_t target) */ uint8_t mac_createSicslowpanLongAddr(uint8_t * ethernet, uip_lladdr_t * lowpan) { - uint8_t index; #if UIP_CONF_SIMPLE_JACKDAW_ADDR_TRANS @@ -687,8 +686,10 @@ uint8_t mac_createSicslowpanLongAddr(uint8_t * ethernet, uip_lladdr_t * lowpan) lowpan->addr[7] = ethernet[5]; #else //!UIP_CONF_SIMPLE_JACKDAW_ADDR_TRANS + + uint8_t index; -#if UIP_LLADDR_LEN == 8 + #if UIP_LLADDR_LEN == 8 //Special case - if the address is our address, we just copy over what we know to be //our 802.15.4 address @@ -750,8 +751,6 @@ uint8_t mac_createSicslowpanLongAddr(uint8_t * ethernet, uip_lladdr_t * lowpan) */ uint8_t mac_createEthernetAddr(uint8_t * ethernet, uip_lladdr_t * lowpan) { - uint8_t index = 0; - uint8_t i; //uint8_t i,j, match; @@ -767,7 +766,10 @@ uint8_t mac_createEthernetAddr(uint8_t * ethernet, uip_lladdr_t * lowpan) #else //!UIP_CONF_SIMPLE_JACKDAW_ADDR_TRANS -#if UIP_LLADDR_LEN == 8 + uint8_t index = 0; + uint8_t i; + + #if UIP_LLADDR_LEN == 8 //Special case - if the address is our address, we just copy over what we know to be //our 802.3 address