[tor-commits] [tor/master] Fix compilation when lzma or zstd is absent

nickm at torproject.org nickm at torproject.org
Wed Apr 26 19:00:43 UTC 2017


commit 7fb9586953580fc9b00fe1a3bf07ef9a805a8c06
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Apr 26 15:00:40 2017 -0400

    Fix compilation when lzma or zstd is absent
---
 src/common/compress_lzma.c | 2 +-
 src/common/compress_zstd.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/compress_lzma.c b/src/common/compress_lzma.c
index af1ba7e..b721bae 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 40b5412..9c134fd 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.



More information about the tor-commits mailing list