summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-26 15:00:40 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-26 15:00:40 -0400
commit7fb9586953580fc9b00fe1a3bf07ef9a805a8c06 (patch)
tree50a70c1cb2bc97feff19f25e5ad8e60c0d106021 /src
parent4038202f89d97caf4d0a0b2d44d4111c4c4b2422 (diff)
downloadtor-7fb9586953580fc9b00fe1a3bf07ef9a805a8c06.tar.gz
tor-7fb9586953580fc9b00fe1a3bf07ef9a805a8c06.zip
Fix compilation when lzma or zstd is absent
Diffstat (limited to 'src')
-rw-r--r--src/common/compress_lzma.c2
-rw-r--r--src/common/compress_zstd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compress_lzma.c b/src/common/compress_lzma.c
index af1ba7ec11..b721bae8aa 100644
--- a/src/common/compress_lzma.c
+++ b/src/common/compress_lzma.c
@@ -211,7 +211,7 @@ tor_lzma_compress_new(int compress,
#else // HAVE_LZMA.
(void)compress;
(void)method;
- (void)compression_level;
+ (void)level;
return NULL;
#endif // HAVE_LZMA.
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c
index 40b541247b..9c134fdf4e 100644
--- a/src/common/compress_zstd.c
+++ b/src/common/compress_zstd.c
@@ -237,7 +237,7 @@ tor_zstd_compress_new(int compress,
#else // HAVE_ZSTD.
(void)compress;
(void)method;
- (void)compression_level;
+ (void)level;
return NULL;
#endif // HAVE_ZSTD.