summaryrefslogtreecommitdiff
path: root/lib/sqfs/comp/lz4.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-24 16:07:45 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-25 17:48:49 +0200
commita32b5a9c793e4f4a4577837b73e783386842db02 (patch)
tree314f42e3302a33a7d3da80689862bc6e1bce179c /lib/sqfs/comp/lz4.c
parent3f887a1acc6129210d1ad4a484842bd411a85c7a (diff)
Remove casual un-const casting in various places
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp/lz4.c')
-rw-r--r--lib/sqfs/comp/lz4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqfs/comp/lz4.c b/lib/sqfs/comp/lz4.c
index f326870..152ae75 100644
--- a/lib/sqfs/comp/lz4.c
+++ b/lib/sqfs/comp/lz4.c
@@ -75,10 +75,10 @@ static sqfs_s32 lz4_comp_block(sqfs_compressor_t *base, const sqfs_u8 *in,
return SQFS_ERROR_ARG_INVALID;
if (lz4->high_compression) {
- ret = LZ4_compress_HC((void *)in, (void *)out,
+ ret = LZ4_compress_HC((const void *)in, (void *)out,
size, outsize, LZ4HC_CLEVEL_MAX);
} else {
- ret = LZ4_compress_default((void *)in, (void *)out,
+ ret = LZ4_compress_default((const void *)in, (void *)out,
size, outsize);
}
@@ -97,7 +97,7 @@ static sqfs_s32 lz4_uncomp_block(sqfs_compressor_t *base, const sqfs_u8 *in,
if (outsize >= 0x7FFFFFFF)
return SQFS_ERROR_ARG_INVALID;
- ret = LZ4_decompress_safe((void *)in, (void *)out, size, outsize);
+ ret = LZ4_decompress_safe((const void *)in, (void *)out, size, outsize);
if (ret < 0)
return SQFS_ERROR_COMPRESSOR;