Coding style

This commit is contained in:
Nicolas Tsiftes 2011-11-23 14:36:50 +01:00
parent e11b7d4fb6
commit 7c808081d6

7
core/net/rpl/rpl-ext-header.c Normal file → Executable file
View file

@ -133,6 +133,7 @@ rpl_update_header_empty(void)
uip_ext_opt_offset = 2; uip_ext_opt_offset = 2;
PRINTF("RPL: Verifying the presence of the RPL header option\n"); PRINTF("RPL: Verifying the presence of the RPL header option\n");
switch(UIP_IP_BUF->proto) { switch(UIP_IP_BUF->proto) {
case UIP_PROTO_HBHO: case UIP_PROTO_HBHO:
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) { if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {
@ -189,13 +190,13 @@ rpl_update_header_empty(void)
int int
rpl_update_header_final(uip_ipaddr_t *addr) rpl_update_header_final(uip_ipaddr_t *addr)
{ {
rpl_parent_t *parent;
int uip_ext_opt_offset; int uip_ext_opt_offset;
int last_uip_ext_len; int last_uip_ext_len;
last_uip_ext_len=uip_ext_len; last_uip_ext_len = uip_ext_len;
uip_ext_len=0; uip_ext_len = 0;
uip_ext_opt_offset = 2; uip_ext_opt_offset = 2;
rpl_parent_t *parent;
if(UIP_IP_BUF->proto == UIP_PROTO_HBHO) { if(UIP_IP_BUF->proto == UIP_PROTO_HBHO) {
if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) { if(UIP_HBHO_BUF->len != RPL_OP_BY_OP_LEN - 8) {