Made it a bit more clear what function that gets called when a neighbor is removed

This commit is contained in:
Adam Dunkels 2013-11-20 14:06:46 +01:00
parent 61ea7fbb1c
commit fc1adec1b8

View file

@ -78,10 +78,16 @@ NBR_TABLE(rpl_parent_t, rpl_parents);
rpl_instance_t instance_table[RPL_MAX_INSTANCES]; rpl_instance_t instance_table[RPL_MAX_INSTANCES];
rpl_instance_t *default_instance; rpl_instance_t *default_instance;
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void
nbr_callback(void *ptr)
{
rpl_remove_parent(ptr);
}
void void
rpl_dag_init(void) rpl_dag_init(void)
{ {
nbr_table_register(rpl_parents, (nbr_table_callback *)rpl_remove_parent); nbr_table_register(rpl_parents, (nbr_table_callback *)nbr_callback);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
rpl_rank_t rpl_rank_t