diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 20:48:28 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 20:48:28 +0100 |
commit | 480ceca5f4e4a26d3d10eaf2360d548b1821ce41 (patch) | |
tree | e7307f256c8c76aa89bd6f3c9708a9ade999506f /include | |
parent | 9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b (diff) |
deflate: return number of bytes written to output
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/deflate.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |