From: Nick Mathewson Date: Fri, 25 Jun 2010 20:14:21 +0000 (-0400) Subject: Fix a compile error when building with Libevent before 1.4.5-stable X-Git-Tag: tor-0.2.2.14-alpha~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d5ff48b922762752c8b92f587dc83806f95fb9f;p=thirdparty%2Ftor.git Fix a compile error when building with Libevent before 1.4.5-stable Older versions of Libevent forgot to declare enough function arguments constant. --- diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index eaff7d7393..1532392279 100644 --- a/src/common/compat_libevent.c +++ b/src/common/compat_libevent.c @@ -535,7 +535,7 @@ periodic_timer_new(struct event_base *base, #ifndef HAVE_PERIODIC memcpy(&timer->tv, tv, sizeof(struct timeval)); #endif - event_add(timer->ev, tv); + event_add(timer->ev, (struct timeval *)tv); /*drop const for old libevent*/ return timer; }