mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue