aboutsummaryrefslogtreecommitdiff
path: root/src/lib/compress/compress.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-09 11:12:12 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-09 11:12:12 -0500
commitc6336727cac937b4b5ca38c9b49ed3a66ce0b579 (patch)
tree8735c6509412adbb1e8a2909cd95577e78b18074 /src/lib/compress/compress.c
parente80595f562e199049a41fdf1f3e12baced7e74d5 (diff)
downloadtor-c6336727cac937b4b5ca38c9b49ed3a66ce0b579.tar.gz
tor-c6336727cac937b4b5ca38c9b49ed3a66ce0b579.zip
Rename subsystem callback functions to make them consistent
Diffstat (limited to 'src/lib/compress/compress.c')
-rw-r--r--src/lib/compress/compress.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/compress/compress.c b/src/lib/compress/compress.c
index 0d134fd1be..6cb9bd492b 100644
--- a/src/lib/compress/compress.c
+++ b/src/lib/compress/compress.c
@@ -686,9 +686,15 @@ tor_compress_log_init_warnings(void)
tor_zstd_warn_if_version_mismatched();
}
+static int
+subsys_compress_initialize(void)
+{
+ return tor_compress_init();
+}
+
const subsys_fns_t sys_compress = {
.name = "compress",
.supported = true,
.level = -70,
- .initialize = tor_compress_init,
+ .initialize = subsys_compress_initialize,
};