summaryrefslogtreecommitdiff
path: root/lib/sqfs/comp/gzip.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 15:12:41 +0200
commit8348086b48af0cbabe4cf2b64992ced6561ea50c (patch)
treea77cb51107c1b67c9fc1e1c08d45ef1947a95e80 /lib/sqfs/comp/gzip.c
parent0880db76afe85391430c547a67bad54b655a66e1 (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/gzip.c')
-rw-r--r--lib/sqfs/comp/gzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfs/comp/gzip.c b/lib/sqfs/comp/gzip.c
index 9be84db..91cd87e 100644
--- a/lib/sqfs/comp/gzip.c
+++ b/lib/sqfs/comp/gzip.c
@@ -138,7 +138,7 @@ static int find_strategy(gzip_compressor_t *gzip, const sqfs_u8 *in,
strategy = flag_to_zlib_strategy(i);
- gzip->strm.next_in = (void *)in;
+ gzip->strm.next_in = (z_const Bytef *)in;
gzip->strm.avail_in = size;
gzip->strm.next_out = out;
gzip->strm.avail_out = outsize;
@@ -189,7 +189,7 @@ static sqfs_s32 gzip_do_block(sqfs_compressor_t *base, const sqfs_u8 *in,
if (ret != Z_OK)
return SQFS_ERROR_COMPRESSOR;
- gzip->strm.next_in = (void *)in;
+ gzip->strm.next_in = (const void *)in;
gzip->strm.avail_in = size;
gzip->strm.next_out = out;
gzip->strm.avail_out = outsize;