Minor code style fixes
This commit is contained in:
parent
55f1f01a98
commit
d397e97e74
@ -72,7 +72,7 @@ PROCESS(rpl_root_process, "RPL ROOT, Multicast Sender");
|
||||
AUTOSTART_PROCESSES(&rpl_root_process);
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
multicast_send()
|
||||
multicast_send(void)
|
||||
{
|
||||
uint32_t id;
|
||||
|
||||
@ -91,7 +91,7 @@ multicast_send()
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
prepare_mcast()
|
||||
prepare_mcast(void)
|
||||
{
|
||||
uip_ipaddr_t ipaddr;
|
||||
|
||||
@ -99,12 +99,12 @@ prepare_mcast()
|
||||
* IPHC will use stateless multicast compression for this destination
|
||||
* (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);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
set_own_addresses()
|
||||
set_own_addresses(void)
|
||||
{
|
||||
int i;
|
||||
uint8_t state;
|
||||
@ -123,7 +123,7 @@ set_own_addresses()
|
||||
PRINTF(" ");
|
||||
PRINT6ADDR(&uip_ds6_if.addr_list[i].ipaddr);
|
||||
PRINTF("\n");
|
||||
if (state == ADDR_TENTATIVE) {
|
||||
if(state == ADDR_TENTATIVE) {
|
||||
uip_ds6_if.addr_list[i].state = ADDR_PREFERRED;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ tcpip_handler(void)
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static uip_ds6_maddr_t *
|
||||
join_mcast_group()
|
||||
join_mcast_group(void)
|
||||
{
|
||||
uip_ipaddr_t addr;
|
||||
uip_ds6_maddr_t *rv;
|
||||
@ -92,7 +92,7 @@ join_mcast_group()
|
||||
* IPHC will use stateless multicast compression for this destination
|
||||
* (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);
|
||||
|
||||
if(rv) {
|
||||
|
Loading…
Reference in New Issue
Block a user