From: Christian Hesse <m...@eworm.de> The LZ4 function LZ4_compress_limitedOutput() is deprecated, compiler gives warning:
warning: ‘LZ4_compress_limitedOutput’ is deprecated: use LZ4_compress_default() instead The new function LZ4_compress_default() appeared in r129 (1.7.0), so replace the function there. Signed-off-by: Christian Hesse <m...@eworm.de> --- src/openvpn/comp-lz4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openvpn/comp-lz4.c b/src/openvpn/comp-lz4.c index 6b7c49b..a6ce4f7 100644 --- a/src/openvpn/comp-lz4.c +++ b/src/openvpn/comp-lz4.c @@ -87,7 +87,11 @@ do_lz4_compress(struct buffer *buf, return false; } +#if defined LZ4_VERSION_NUMBER && LZ4_VERSION_NUMBER >= 10700 + zlen = LZ4_compress_default((const char *)BPTR(buf), (char *)BPTR(work), BLEN(buf), zlen_max ); +#else zlen = LZ4_compress_limitedOutput((const char *)BPTR(buf), (char *)BPTR(work), BLEN(buf), zlen_max ); +#endif if (zlen <= 0) { -- 1.8.3.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel