diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-16 08:06:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-16 08:06:01 -0500 |
commit | 5a9ada342fb17a7c3ba69efbdd548ec278b0e070 (patch) | |
tree | 19ad1b4b5a04a6f64647d3327b7e974b1e21cdbb /src/common/compress_zstd.c | |
parent | b56fd17d0003b0b66570a7d99aadbe901144f75d (diff) | |
download | tor-5a9ada342fb17a7c3ba69efbdd548ec278b0e070.tar.gz tor-5a9ada342fb17a7c3ba69efbdd548ec278b0e070.zip |
tor_zstd_format_version shouldn't be built when !HAVE_ZSTD
Fixes bug 25276; bugfix not in any released Tor.
Diffstat (limited to 'src/common/compress_zstd.c')
-rw-r--r-- | src/common/compress_zstd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c index 0c3e7104f0..4e26c724e8 100644 --- a/src/common/compress_zstd.c +++ b/src/common/compress_zstd.c @@ -58,6 +58,7 @@ tor_zstd_method_supported(void) #endif } +#ifdef HAVE_ZSTD /** Format a zstd version number as a string in <b>buf</b>. */ static void tor_zstd_format_version(char *buf, size_t buflen, unsigned version_number) @@ -68,6 +69,7 @@ tor_zstd_format_version(char *buf, size_t buflen, unsigned version_number) version_number / 100 % 100, version_number % 100); } +#endif #define VERSION_STR_MAX_LEN 16 /* more than enough space for 99.99.99 */ |