return -1;
if (SU_TIMER_IS_SET(t))
- timers_remove(timers[0], t->sut_heap_index)->sut_heap_index = 0;
+ timers_remove(timers[0], t->sut_heap_index);
t->sut_wakeup = wakeup;
t->sut_arg = arg;
return -1;
if (SU_TIMER_IS_SET(t))
- timers_remove(timers[0], t->sut_heap_index)->sut_heap_index = 0;
+ timers_remove(timers[0], t->sut_heap_index);
t->sut_wakeup = NULL;
t->sut_arg = NULL;
break;
}
- timers_remove(timers[0], 1)->sut_heap_index = 0;
+ timers_remove(timers[0], 1);
f = t->sut_wakeup; t->sut_wakeup = NULL;
assert(f);
if (su_task_cmp(task, t->sut_task))
continue;
- timers_remove(timers[0], i)->sut_heap_index = 0;
+ timers_remove(timers[0], i);
su_free(NULL, t);
n++;