From 83e208ef1744cdf7aa1cd290c1caae2c903d2ec4 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Sun, 12 Mar 2023 10:45:19 +0100 Subject: inflate: make inputs const Make the inputs const since we never write to the data it points to. Patch provided by Andrew Jeddeloh --- include/lib/inflate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/lib/inflate.h b/include/lib/inflate.h index af2b4f7..fb582a6 100644 --- a/include/lib/inflate.h +++ b/include/lib/inflate.h @@ -18,7 +18,7 @@ #define DEFLATE_ERR_NLEN (-8) #define DEFLATE_ERR_HUFFMAN (-9) -int16_t inflate(unsigned char *input_buf, uint16_t input_len, +int16_t inflate(unsigned char const *input_buf, uint16_t input_len, unsigned char *output_buf, uint16_t output_len); -int16_t inflate_zlib(unsigned char *input_buf, uint16_t input_len, +int16_t inflate_zlib(unsigned char const *input_buf, uint16_t input_len, unsigned char *output_buf, uint16_t output_len); -- cgit v1.2.3