]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove a workaround for ancient libevent versions.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 May 2018 16:38:50 +0000 (12:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 10 May 2018 13:01:50 +0000 (09:01 -0400)
Libevent has accepted a const timeval argument to event_add() for a
very long time now.

src/common/compat_libevent.c

index cf3b7298c275cedb36350dbd5891c8c023185c6c..56ee682fde9de2ffde2f98d6ac5eb748f36dd544 100644 (file)
@@ -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);
 }
 
 /**