Explorar o código

Remove a workaround for ancient libevent versions.

Libevent has accepted a const timeval argument to event_add() for a
very long time now.
Nick Mathewson %!s(int64=6) %!d(string=hai) anos
pai
achega
4218511ecd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/compat_libevent.c

+ 1 - 1
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);
 }
 
 /**