diff options
-rw-r--r-- | include/lib/inflate.h | 4 | ||||
-rw-r--r-- | src/lib/inflate.cc | 8 |
2 files changed, 6 insertions, 6 deletions
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); diff --git a/src/lib/inflate.cc b/src/lib/inflate.cc index 02fe350..cd29af0 100644 --- a/src/lib/inflate.cc +++ b/src/lib/inflate.cc @@ -11,8 +11,8 @@ /* * The compressed (inflated) input data. */ -unsigned char *deflate_input_now; -unsigned char *deflate_input_end; +unsigned char const *deflate_input_now; +unsigned char const *deflate_input_end; /* * The decompressed (deflated) output stream. @@ -465,7 +465,7 @@ static int8_t deflate_dynamic_huffman() #endif } -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) { deflate_input_now = input_buf; @@ -506,7 +506,7 @@ int16_t inflate(unsigned char *input_buf, uint16_t input_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) { if (input_len < 4) { |