summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-21 20:48:28 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-21 20:48:28 +0100
commit480ceca5f4e4a26d3d10eaf2360d548b1821ce41 (patch)
treee7307f256c8c76aa89bd6f3c9708a9ade999506f /include
parent9a8071e7e6c7c8c9f73bd54d32d2ce6b62b1ba8b (diff)
deflate: return number of bytes written to output
Diffstat (limited to 'include')
-rw-r--r--include/lib/deflate.h4
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);