From a31ddd0cf3df18b360fac4458ba5bbec14e885e3 Mon Sep 17 00:00:00 2001 From: Tim Rakowski Date: Sat, 12 Aug 2017 20:25:02 +0200 Subject: [PATCH] Replaced deprecated lz4 function call --- utilities/roslz4/src/lz4s.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utilities/roslz4/src/lz4s.c b/utilities/roslz4/src/lz4s.c index 05f16eabfc..c1299b040f 100644 --- a/utilities/roslz4/src/lz4s.c +++ b/utilities/roslz4/src/lz4s.c @@ -181,10 +181,10 @@ int bufferToOutput(roslz4_stream *str) { state->buffer_offset, str->output_left); // Shrink output by 1 to detect if data is not compressible - uint32_t comp_size = LZ4_compress_limitedOutput(state->buffer, - str->output_next + 4, - (int) state->buffer_offset, - (int) uncomp_size - 1); + uint32_t comp_size = LZ4_compress_default(state->buffer, + str->output_next + 4, + (int) state->buffer_offset, + (int) uncomp_size - 1); uint32_t wrote; if (comp_size > 0) { DEBUG("bufferToOutput() Compressed to %i bytes\n", comp_size);