summaryrefslogtreecommitdiff
path: root/lib/uzlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uzlib')
-rw-r--r--lib/uzlib/tinflate.c2
-rw-r--r--lib/uzlib/uzlib.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/uzlib/tinflate.c b/lib/uzlib/tinflate.c
index 312485fd0..53536272f 100644
--- a/lib/uzlib/tinflate.c
+++ b/lib/uzlib/tinflate.c
@@ -185,7 +185,7 @@ unsigned char uzlib_get_byte(uzlib_uncomp_t *d)
read next byte using it. (Note: the callback can also update ->source
and ->source_limit). */
if (d->source_read_cb && !d->eof) {
- int val = d->source_read_cb(d);
+ int val = d->source_read_cb(d->source_read_data);
if (val >= 0) {
return (unsigned char)val;
}
diff --git a/lib/uzlib/uzlib.h b/lib/uzlib/uzlib.h
index 030f7698c..16984a77d 100644
--- a/lib/uzlib/uzlib.h
+++ b/lib/uzlib/uzlib.h
@@ -84,7 +84,8 @@ typedef struct _uzlib_uncomp_t {
also return -1 in case of EOF (or irrecoverable error). Note that
besides returning the next byte, it may also update source and
source_limit fields, thus allowing for buffered operation. */
- int (*source_read_cb)(struct _uzlib_uncomp_t *uncomp);
+ void *source_read_data;
+ int (*source_read_cb)(void *);
unsigned int tag;
unsigned int bitcount;