[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #4582 [Tor Client]: master fails to build with libevent 1: event_free not a known function
#4582: master fails to build with libevent 1: event_free not a known function
------------------------+---------------------------------------------------
Reporter: arma | Owner: nickm
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
{{{
compat_libevent.c: In function ârun_runnable_cbâ:
compat_libevent.c:576:3: error: implicit declaration of function
âevent_freeâ [-Werror=implicit-function-declaration]
compat_libevent.c:576:3: error: nested extern declaration of âevent_freeâ
[-Werror=nested-externs]
}}}
Looks like the bug crept in during 7920ea55.
And this patch makes it compile:
{{{
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -573,7 +573,7 @@ run_runnable_cb(evutil_socket_t s, short what, void
*arg)
void *cb_arg = r->arg;
(void)what;
(void)s;
- event_free(r->ev);
+ tor_event_free(r->ev);
tor_free(r);
cb(cb_arg);
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4582>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs