Use evutil_timercmp instead of timercmp to take advantage of the
fallback installed in evutil.h. This commit was SVN r17968.
Этот коммит содержится в:
родитель
a01f3f762c
Коммит
64bc580c78
@ -51,7 +51,7 @@ static inline void min_heap_shift_down_(min_heap_t* s, unsigned hole_i
|
||||
|
||||
int min_heap_elem_greater(struct event *a, struct event *b)
|
||||
{
|
||||
return timercmp(&a->ev_timeout, &b->ev_timeout, >);
|
||||
return evutil_timercmp(&a->ev_timeout, &b->ev_timeout, >);
|
||||
}
|
||||
|
||||
void min_heap_ctor(min_heap_t* s) { s->p = 0; s->n = 0; s->a = 0; }
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user