From 480ceca5f4e4a26d3d10eaf2360d548b1821ce41 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 21 Jan 2021 20:48:28 +0100 Subject: deflate: return number of bytes written to output --- include/lib/deflate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/lib') diff --git a/include/lib/deflate.h b/include/lib/deflate.h index c592d42..39fc128 100644 --- a/include/lib/deflate.h +++ b/include/lib/deflate.h @@ -15,7 +15,7 @@ #define DEFLATE_ERR_FCHECK (-7) #define DEFLATE_ERR_NLEN (-8) -int8_t deflate(unsigned char *input_buf, uint16_t input_len, +int16_t deflate(unsigned char *input_buf, uint16_t input_len, unsigned char *output_buf, uint16_t output_len); -int8_t deflate_zlib(unsigned char *input_buf, uint16_t input_len, +int16_t deflate_zlib(unsigned char *input_buf, uint16_t input_len, unsigned char *output_buf, uint16_t output_len); -- cgit v1.2.3