Skip to content
Snippets Groups Projects
Commit 0d5ff48b authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix a compile error when building with Libevent before 1.4.5-stable

Older versions of Libevent forgot to declare enough function arguments
constant.
parent ad2d8ac0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment