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_zstd.h | |
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_zstd.h')
-rw-r--r-- | src/common/compress_zstd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compress_zstd.h b/src/common/compress_zstd.h index 8882617c9f..bd42cf65ce 100644 --- a/src/common/compress_zstd.h +++ b/src/common/compress_zstd.h @@ -43,6 +43,7 @@ size_t tor_zstd_compress_state_size(const tor_zstd_compress_state_t *state); size_t tor_zstd_get_total_allocation(void); void tor_zstd_init(void); +void tor_zstd_warn_if_version_mismatched(void); #ifdef TOR_UNIT_TESTS void tor_zstd_set_static_apis_disabled_for_testing(int disabled); |