Moved variable declaration to the start of the function block
This commit is contained in:
parent
faff1c2a7e
commit
b0460317b8
2 changed files with 2 additions and 2 deletions
|
@ -69,6 +69,7 @@ rpl_verify_header(int uip_ext_opt_offset)
|
|||
rpl_instance_t *instance;
|
||||
int down;
|
||||
uint8_t sender_closer;
|
||||
uip_ds6_route_t *route;
|
||||
|
||||
if(UIP_EXT_HDR_OPT_RPL_BUF->opt_len != RPL_HDR_OPT_LEN) {
|
||||
PRINTF("RPL: Bad header option! (wrong length)\n");
|
||||
|
@ -88,7 +89,6 @@ rpl_verify_header(int uip_ext_opt_offset)
|
|||
the packet to be forwareded in the first place. We drop any
|
||||
routes that go through the neighbor that sent the packet to
|
||||
us. */
|
||||
uip_ds6_route_t *route;
|
||||
route = uip_ds6_route_lookup(&UIP_IP_BUF->destipaddr);
|
||||
if(route != NULL) {
|
||||
uip_ds6_route_rm(route);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue