[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/master] Fix a compile error when building with Libevent before 1.4.5-stable
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri, 25 Jun 2010 16:14:21 -0400
Subject: Fix a compile error when building with Libevent before 1.4.5-stable
Commit: 0d5ff48b922762752c8b92f587dc83806f95fb9f
Older versions of Libevent forgot to declare enough function arguments
constant.
---
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 eaff7d7..1532392 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;
}
--
1.7.1