Fix coding style.

This commit is contained in:
Nicolas Tsiftes 2011-12-08 15:38:35 +01:00
parent d0ebeb409e
commit 1e61fca653

View File

@ -126,15 +126,11 @@ neighbor_info_packet_sent(int status, int numtx)
add_neighbor(dest);
#if UIP_DS6_LL_NUD
nbr = uip_ds6_nbr_ll_lookup((uip_lladdr_t *)dest);
if (nbr!=NULL) {
PRINTF("neighbor-info : nbr state = %u\n",nbr->state);
} else {
PRINTF("neighbor-info : no nbr\n");
}
if (nbr!=NULL && (nbr->state == STALE || nbr->state == DELAY || nbr->state == PROBE)) {
if(nbr != NULL &&
(nbr->state == STALE || nbr->state == DELAY || nbr->state == PROBE)) {
nbr->state = REACHABLE;
stimer_set(&nbr->reachable, UIP_ND6_REACHABLE_TIME / 1000);
PRINTF("neighbor-info : received a linklayer ack : ");
PRINTF("neighbor-info : received a link layer ACK : ");
PRINTLLADDR((uip_lladdr_t *)dest);
PRINTF(" is reachable.\n");
}