diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-03 11:20:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-05 12:36:27 -0400 |
commit | b3586629c9ce41393898b381159ba331906f8fc3 (patch) | |
tree | df515c0311ce74f29890b77311403905aa406f55 /src/test/test_channelpadding.c | |
parent | 39cb04335f9fd5c3268c808bac549f531fe389a3 (diff) | |
download | tor-b3586629c9ce41393898b381159ba331906f8fc3.tar.gz tor-b3586629c9ce41393898b381159ba331906f8fc3.zip |
Wrap the function we use to run the event loop.
Doing this lets us remove the event2/event.h header from a few more
modules, particularly in the tests.
Part of work on 23750.
Diffstat (limited to 'src/test/test_channelpadding.c')
-rw-r--r-- | src/test/test_channelpadding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_channelpadding.c b/src/test/test_channelpadding.c index 072a347de7..2c803c3443 100644 --- a/src/test/test_channelpadding.c +++ b/src/test/test_channelpadding.c @@ -15,7 +15,6 @@ #include "channelpadding.h" #include "compat_libevent.h" #include "config.h" -#include <event2/event.h> #include "compat_time.h" #include "main.h" #include "networkstatus.h" @@ -264,7 +263,8 @@ dummy_nop_timer(void) timer_schedule(dummy_timer, &timeout); - event_base_loop(tor_libevent_get_base(), 0); + tor_libevent_run_event_loop(tor_libevent_get_base(), 0); + timer_free(dummy_timer); } |