mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Remove a workaround for ancient libevent versions.
Libevent has accepted a const timeval argument to event_add() for a very long time now.
This commit is contained in:
parent
80f582ae18
commit
4218511ecd
@ -269,7 +269,7 @@ periodic_timer_launch(periodic_timer_t *timer, const struct timeval *tv)
|
|||||||
tor_assert(timer);
|
tor_assert(timer);
|
||||||
if (event_pending(timer->ev, EV_TIMEOUT, NULL))
|
if (event_pending(timer->ev, EV_TIMEOUT, NULL))
|
||||||
return;
|
return;
|
||||||
event_add(timer->ev, (struct timeval *)tv); /*drop const for old libevent*/
|
event_add(timer->ev, tv);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user