diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-06 11:02:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-06 11:05:07 -0500 |
commit | a77a366b87fb04a878392284241fe72850b4dd88 (patch) | |
tree | 193a9a42c2627278583f92233381a2688debbc9b /src/common/compress.c | |
parent | f98cb5d3552666ede73137d998162094d5a31a1a (diff) | |
download | tor-a77a366b87fb04a878392284241fe72850b4dd88.tar.gz tor-a77a366b87fb04a878392284241fe72850b4dd88.zip |
Warn on zstd header/library version mismatch
If we're going to potentially degrade performance in this case, we
may as well tell people so.
Diffstat (limited to 'src/common/compress.c')
-rw-r--r-- | src/common/compress.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/compress.c b/src/common/compress.c index 47c93cf6a9..cb1549f1aa 100644 --- a/src/common/compress.c +++ b/src/common/compress.c @@ -663,3 +663,13 @@ tor_compress_init(void) tor_zstd_init(); } +/** Warn if we had any problems while setting up our compression libraries. + * + * (This isn't part of tor_compress_init, since the logs aren't set up yet.) + */ +void +tor_compress_log_init_warnings(void) +{ + tor_zstd_warn_if_version_mismatched(); +} + |