summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-03-12 10:45:19 +0100
committerDerf Null <derf@finalrewind.org>2023-03-12 10:45:19 +0100
commit83e208ef1744cdf7aa1cd290c1caae2c903d2ec4 (patch)
tree16855cd95ae8d7374dd541fb52bba84840c5eb93 /include
parent553fedfeb11f95e1773b5f6cdfc7775834cbfa12 (diff)
inflate: make inputs const
Make the inputs const since we never write to the data it points to. Patch provided by Andrew Jeddeloh
Diffstat (limited to 'include')
-rw-r--r--include/lib/inflate.h4
1 files changed, 2 insertions, 2 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);