summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-17 18:27:01 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-12-17 18:27:01 -0500
commit777fe71fdf89560600d274609bda388f91ff85b7 (patch)
tree887d3d27999d7784d9d74072b6937bfb27598249 /src
parenteb56bec413d7bce4950c27b08e0d478a15946206 (diff)
test-compress: fix warning about LZ4_compress_limitedOutput
691b90d465 fixed one spot, but missed the other one.
Diffstat (limited to 'src')
-rw-r--r--src/journal/test-compress.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/test-compress.c b/src/journal/test-compress.c
index 72cadf1771..0469393f3b 100644
--- a/src/journal/test-compress.c
+++ b/src/journal/test-compress.c
@@ -216,7 +216,11 @@ static void test_lz4_decompress_partial(void) {
memset(huge, 'x', HUGE_SIZE);
memcpy(huge, "HUGE=", 5);
+#if LZ4_VERSION_NUMBER >= 10700
+ r = LZ4_compress_default(huge, buf, HUGE_SIZE, buf_size);
+#else
r = LZ4_compress_limitedOutput(huge, buf, HUGE_SIZE, buf_size);
+#endif
assert_se(r >= 0);
compressed = r;
log_info("Compressed %i → %zu", HUGE_SIZE, compressed);