tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 4218511ecd8a1facbd38d744b1bd518c05517988
parent 80f582ae1841d262edd7f55260f350d949294c0c
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed,  9 May 2018 12:38:50 -0400

Remove a workaround for ancient libevent versions.

Libevent has accepted a const timeval argument to event_add() for a
very long time now.

Diffstat:
Msrc/common/compat_libevent.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c @@ -269,7 +269,7 @@ periodic_timer_launch(periodic_timer_t *timer, const struct timeval *tv) tor_assert(timer); if (event_pending(timer->ev, EV_TIMEOUT, NULL)) return; - event_add(timer->ev, (struct timeval *)tv); /*drop const for old libevent*/ + event_add(timer->ev, tv); } /**