From dbb959f1e6809e0e059e571b4126065c5e24743a Mon Sep 17 00:00:00 2001 From: smh Date: Mon, 25 Jan 2016 10:45:18 +0000 Subject: [PATCH] MFC r293271: Fix const conversion warning in lz4_decompress Sponsored by: Multiplay --- sys/cddl/boot/zfs/lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/boot/zfs/lz4.c b/sys/cddl/boot/zfs/lz4.c index 055bd627fd10..c29f8614155d 100644 --- a/sys/cddl/boot/zfs/lz4.c +++ b/sys/cddl/boot/zfs/lz4.c @@ -52,7 +52,7 @@ lz4_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int dum * Returns 0 on success (decompression function returned non-negative) * and non-zero on failure (decompression function returned negative). */ - return (LZ4_uncompress_unknownOutputSize(s_start + 4, d_start, bufsiz, + return (LZ4_uncompress_unknownOutputSize((const char *)s_start + 4, d_start, bufsiz, d_len) < 0); }