mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Fix a compile error when building with Libevent before 1.4.5-stable
Older versions of Libevent forgot to declare enough function arguments constant.
This commit is contained in:
parent
ad2d8ac073
commit
0d5ff48b92
@ -535,7 +535,7 @@ periodic_timer_new(struct event_base *base,
|
|||||||
#ifndef HAVE_PERIODIC
|
#ifndef HAVE_PERIODIC
|
||||||
memcpy(&timer->tv, tv, sizeof(struct timeval));
|
memcpy(&timer->tv, tv, sizeof(struct timeval));
|
||||||
#endif
|
#endif
|
||||||
event_add(timer->ev, tv);
|
event_add(timer->ev, (struct timeval *)tv); /*drop const for old libevent*/
|
||||||
return timer;
|
return timer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user