diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-09 12:38:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-10 09:01:50 -0400 |
commit | 4218511ecd8a1facbd38d744b1bd518c05517988 (patch) | |
tree | 1dd4babf0250017fa31e66d547757024a3173f98 /src/common | |
parent | 80f582ae1841d262edd7f55260f350d949294c0c (diff) | |
download | tor-4218511ecd8a1facbd38d744b1bd518c05517988.tar.gz tor-4218511ecd8a1facbd38d744b1bd518c05517988.zip |
Remove a workaround for ancient libevent versions.
Libevent has accepted a const timeval argument to event_add() for a
very long time now.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat_libevent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index cf3b7298c2..56ee682fde 100644 --- 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); } /** |