From 0d5ff48b922762752c8b92f587dc83806f95fb9f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 25 Jun 2010 16:14:21 -0400 Subject: [PATCH] Fix a compile error when building with Libevent before 1.4.5-stable Older versions of Libevent forgot to declare enough function arguments constant. --- src/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 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; } -- 2.11.4.GIT