aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-02 18:34:56 -0400
committerNick Mathewson <nickm@torproject.org>2018-11-05 09:22:02 -0500
commit019a044e5e6586fb42a171cb98aea15a72bd5a13 (patch)
treeecef2a3f24eeed94effaad245b649aff1a50e46a /src/app
parent207253df8d7c040840c7f4305534e6979bfc7bf7 (diff)
downloadtor-019a044e5e6586fb42a171cb98aea15a72bd5a13.tar.gz
tor-019a044e5e6586fb42a171cb98aea15a72bd5a13.zip
Turn "compress" into a subsystem.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main/main.c2
-rw-r--r--src/app/main/subsystem_list.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index bb2e9f5cdb..6240609ee6 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -1367,8 +1367,6 @@ tor_run_main(const tor_main_configuration_t *tor_cfg)
init_protocol_warning_severity_level();
- tor_compress_init();
-
int argc = tor_cfg->argc + tor_cfg->argc_owned;
char **argv = tor_calloc(argc, sizeof(char*));
memcpy(argv, tor_cfg->argv, tor_cfg->argc*sizeof(char*));
diff --git a/src/app/main/subsystem_list.c b/src/app/main/subsystem_list.c
index a9189b9941..e47b05da15 100644
--- a/src/app/main/subsystem_list.c
+++ b/src/app/main/subsystem_list.c
@@ -8,6 +8,7 @@
#include "lib/cc/compat_compiler.h"
#include "lib/cc/torint.h"
+#include "lib/compress/compress_sys.h"
#include "lib/crypt_ops/crypto_sys.h"
#include "lib/err/torerr_sys.h"
#include "lib/log/log_sys.h"
@@ -30,6 +31,7 @@ const subsys_fns_t *tor_subsystems[] = {
&sys_logging,
&sys_time,
&sys_network,
+ &sys_compress,
&sys_crypto,
};