Make the process_descs.c module dirauth-only.

This commit is contained in:
Nick Mathewson 2019-04-30 11:31:03 -04:00
parent aab0245924
commit 857bfc7033
3 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,6 @@
#include "feature/dirauth/bwauth.h"
#include "feature/dirauth/dirvote.h"
#include "feature/dirauth/keypin.h"
#include "feature/dirauth/process_descs.h"
#include "feature/dirauth/shared_random.h"
#include "feature/dircache/consdiffmgr.h"
#include "feature/dircache/dirserv.h"
@ -128,7 +127,6 @@ tor_free_all(int postfork)
routerlist_free_all();
networkstatus_free_all();
addressmap_free_all();
dirserv_free_fingerprint_list();
dirserv_free_all();
dirserv_clear_measured_bw_cache();
rend_cache_free_all();

View File

@ -156,7 +156,6 @@ LIBTOR_APP_A_SOURCES += \
src/feature/dirauth/bwauth.c \
src/feature/dirauth/guardfraction.c \
src/feature/dirauth/reachability.c \
src/feature/dirauth/process_descs.c \
src/feature/dirauth/voteflags.c
if BUILD_NT_SERVICES
@ -179,6 +178,7 @@ MODULE_DIRAUTH_SOURCES = \
src/feature/dirauth/dircollate.c \
src/feature/dirauth/dirvote.c \
src/feature/dirauth/dsigs_parse.c \
src/feature/dirauth/process_descs.c \
src/feature/dirauth/recommend_pkg.c \
src/feature/dirauth/shared_random.c \
src/feature/dirauth/shared_random_state.c

View File

@ -9,6 +9,8 @@
#include "feature/dirauth/dirauth_sys.h"
#include "feature/dirauth/dirvote.h"
#include "feature/dirauth/dirauth_periodic.h"
#include "feature/dirauth/process_descs.h"
#include "lib/subsys/subsys.h"
static int
@ -21,6 +23,7 @@ subsys_dirauth_initialize(void)
static void
subsys_dirauth_shutdown(void)
{
dirserv_free_fingerprint_list();
dirvote_free_all();
}