diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-06-25 16:14:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-06-25 16:14:21 -0400 |
commit | 0d5ff48b922762752c8b92f587dc83806f95fb9f (patch) | |
tree | 70c8f3ce0e6c73e1bb5450885a6d5d60ca83e93f /src/common | |
parent | ad2d8ac073e576f538813a75183a3a8a477dfd5b (diff) | |
download | tor-0d5ff48b922762752c8b92f587dc83806f95fb9f.tar.gz tor-0d5ff48b922762752c8b92f587dc83806f95fb9f.zip |
Fix a compile error when building with Libevent before 1.4.5-stable
Older versions of Libevent forgot to declare enough function arguments
constant.
Diffstat (limited to 'src/common')
-rw-r--r-- | 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 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; } |