fix for compilation with clang - issue reported by Olaf Bergmann

This commit is contained in:
Joakim Eriksson 2016-06-12 11:32:12 +02:00
parent 8e6c6cc45b
commit 7853a7434b

View File

@ -84,12 +84,14 @@ handle_periodic_timer(void *ptr)
rpl_dag_t *dag = rpl_get_any_dag();
rpl_purge_dags();
if(dag != NULL && RPL_IS_STORING(dag->instance)) {
if(dag != NULL) {
if(RPL_IS_STORING(dag->instance)) {
rpl_purge_routes();
}
if(dag != NULL && RPL_IS_NON_STORING(dag->instance)) {
if(RPL_IS_NON_STORING(dag->instance)) {
rpl_ns_periodic();
}
}
rpl_recalculate_ranks();
/* handle DIS */