Minor code style fixes

This commit is contained in:
Adam Dunkels 2013-10-05 11:25:58 +02:00 committed by George Oikonomou
parent 55f1f01a98
commit d397e97e74
2 changed files with 7 additions and 7 deletions

View file

@ -72,7 +72,7 @@ PROCESS(rpl_root_process, "RPL ROOT, Multicast Sender");
AUTOSTART_PROCESSES(&rpl_root_process); AUTOSTART_PROCESSES(&rpl_root_process);
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static void
multicast_send() multicast_send(void)
{ {
uint32_t id; uint32_t id;
@ -91,7 +91,7 @@ multicast_send()
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static void
prepare_mcast() prepare_mcast(void)
{ {
uip_ipaddr_t ipaddr; uip_ipaddr_t ipaddr;
@ -99,12 +99,12 @@ prepare_mcast()
* IPHC will use stateless multicast compression for this destination * IPHC will use stateless multicast compression for this destination
* (M=1, DAC=0), with 32 inline bits (1E 89 AB CD) * (M=1, DAC=0), with 32 inline bits (1E 89 AB CD)
*/ */
uip_ip6addr(&ipaddr,0xFF1E,0,0,0,0,0,0x89,0xABCD); uip_ip6addr(&ipaddr, 0xFF1E,0,0,0,0,0,0x89,0xABCD);
mcast_conn = udp_new(&ipaddr, UIP_HTONS(MCAST_SINK_UDP_PORT), NULL); mcast_conn = udp_new(&ipaddr, UIP_HTONS(MCAST_SINK_UDP_PORT), NULL);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static void
set_own_addresses() set_own_addresses(void)
{ {
int i; int i;
uint8_t state; uint8_t state;
@ -123,7 +123,7 @@ set_own_addresses()
PRINTF(" "); PRINTF(" ");
PRINT6ADDR(&uip_ds6_if.addr_list[i].ipaddr); PRINT6ADDR(&uip_ds6_if.addr_list[i].ipaddr);
PRINTF("\n"); PRINTF("\n");
if (state == ADDR_TENTATIVE) { if(state == ADDR_TENTATIVE) {
uip_ds6_if.addr_list[i].state = ADDR_PREFERRED; uip_ds6_if.addr_list[i].state = ADDR_PREFERRED;
} }
} }

View file

@ -78,7 +78,7 @@ tcpip_handler(void)
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static uip_ds6_maddr_t * static uip_ds6_maddr_t *
join_mcast_group() join_mcast_group(void)
{ {
uip_ipaddr_t addr; uip_ipaddr_t addr;
uip_ds6_maddr_t *rv; uip_ds6_maddr_t *rv;
@ -92,7 +92,7 @@ join_mcast_group()
* IPHC will use stateless multicast compression for this destination * IPHC will use stateless multicast compression for this destination
* (M=1, DAC=0), with 32 inline bits (1E 89 AB CD) * (M=1, DAC=0), with 32 inline bits (1E 89 AB CD)
*/ */
uip_ip6addr(&addr,0xFF1E,0,0,0,0,0,0x89,0xABCD); uip_ip6addr(&addr, 0xFF1E,0,0,0,0,0,0x89,0xABCD);
rv = uip_ds6_maddr_add(&addr); rv = uip_ds6_maddr_add(&addr);
if(rv) { if(rv) {