diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-08-12 09:35:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-18 08:56:23 -0400 |
commit | 81f3572467583c54eb2a22c3af93f7c819796563 (patch) | |
tree | 550d6b89b2125ef1e2b51f3e1ee03d3a62514b45 /src/test/testing_common.c | |
parent | e507f9bf4280d1462876c6a5bfeaf549b19306f4 (diff) | |
download | tor-81f3572467583c54eb2a22c3af93f7c819796563.tar.gz tor-81f3572467583c54eb2a22c3af93f7c819796563.zip |
Refactor initialization logic for control-event-queue
This puts the init logic in a separate function, which we will need
once we have locking.
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r-- | src/test/testing_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index 7f387c0b3d..441024bd7d 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -14,6 +14,7 @@ const char tor_git_revision[] = ""; #include "orconfig.h" #include "or.h" +#include "control.h" #include "config.h" #include "rephist.h" #include "backtrace.h" @@ -237,6 +238,7 @@ main(int c, const char **v) update_approx_time(time(NULL)); options = options_new(); tor_threads_init(); + control_initialize_event_queue(); init_logging(1); configure_backtrace_handler(get_version()); |