From a4a7fd7dc0475a007c197607ced9544da4f7d254 Mon Sep 17 00:00:00 2001 From: Nicolas Tsiftes Date: Thu, 8 Dec 2011 15:42:19 +0100 Subject: [PATCH] Fix coding style. --- core/net/uip-ds6.c | 12 ++++++------ core/net/uip-icmp6.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/net/uip-ds6.c b/core/net/uip-ds6.c index b30461bac..22ebea15a 100644 --- a/core/net/uip-ds6.c +++ b/core/net/uip-ds6.c @@ -5,9 +5,9 @@ /** * \file - * IPv6 data structures handling functions + * IPv6 data structures handling functions. * Comprises part of the Neighbor discovery (RFC 4861) - * and auto configuration (RFC 4862 )state machines + * and auto configuration (RFC 4862) state machines. * \author Mathilde Durvy * \author Julien Abeille */ @@ -375,11 +375,11 @@ uip_ds6_nbr_ll_lookup(uip_lladdr_t *lladdr) { uip_ds6_nbr_t *fin; - for( locnbr=uip_ds6_nbr_cache, fin=locnbr + UIP_DS6_NBR_NB; - locnbrisused) { - if(!memcmp(lladdr,&locnbr->lladdr,UIP_LLADDR_LEN)) { + if(!memcmp(lladdr, &locnbr->lladdr, UIP_LLADDR_LEN)) { return locnbr; } } @@ -785,7 +785,7 @@ uip_ds6_route_add(uip_ipaddr_t *ipaddr, uint8_t length, uip_ipaddr_t *nexthop, locroute->metric = metric; #ifdef UIP_DS6_ROUTE_STATE_TYPE - memset (&(locroute->state),0,sizeof(UIP_DS6_ROUTE_STATE_TYPE)); + memset(&locroute->state, 0, sizeof(UIP_DS6_ROUTE_STATE_TYPE)); #endif PRINTF("DS6: adding route: "); diff --git a/core/net/uip-icmp6.c b/core/net/uip-icmp6.c index fb2016b23..73aaf2a0b 100644 --- a/core/net/uip-icmp6.c +++ b/core/net/uip-icmp6.c @@ -69,7 +69,7 @@ static uip_ipaddr_t tmp_ipaddr; #if UIP_CONF_IPV6_RPL -int rpl_invert_header(void); +#include "rpl/rpl.h" #endif /* UIP_CONF_IPV6_RPL */ /*---------------------------------------------------------------------------*/