summaryrefslogtreecommitdiff
path: root/lib/libz/zlib.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-16 22:35:51 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-16 22:35:51 +0000
commitd4865daa610cf000983691a9fa0e232d6c5aa2c3 (patch)
tree1a855709e7afe13a81e1c8d43bbf2bab7c1cc211 /lib/libz/zlib.h
parent2ae40db11c273adaddcc3023abc89a1f58a5e1f2 (diff)
total_in and total_out need to be off_t, not unsigned long.
some bugs return: i fixed the same some months ago when we had this other gzip there. this bug resulted in wrong size stats for > 4GB files, and in the case that the input file was > 4GB and could be compressed to < 4GB gzip not zipping it as it would grow in its eyes.
Diffstat (limited to 'lib/libz/zlib.h')
-rw-r--r--lib/libz/zlib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libz/zlib.h b/lib/libz/zlib.h
index 91ec725e3b8..91f6b4b7fb1 100644
--- a/lib/libz/zlib.h
+++ b/lib/libz/zlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: zlib.h,v 1.6 2003/12/16 22:33:02 henning Exp $ */
+/* $OpenBSD: zlib.h,v 1.7 2003/12/16 22:35:50 henning Exp $ */
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.1, November 17th, 2003
@@ -85,11 +85,11 @@ struct internal_state;
typedef struct z_stream_s {
Bytef *next_in; /* next input byte */
uInt avail_in; /* number of bytes available at next_in */
- uLong total_in; /* total nb of input bytes read so far */
+ z_off_t total_in; /* total nb of input bytes read so far */
Bytef *next_out; /* next output byte should be put there */
uInt avail_out; /* remaining free space at next_out */
- uLong total_out; /* total nb of bytes output so far */
+ z_off_t total_out; /* total nb of bytes output so far */
char *msg; /* last error message, NULL if no error */
struct internal_state FAR *state; /* not visible by applications */