aboutsummaryrefslogtreecommitdiff
path: root/lib/libz/gzread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libz/gzread.c')
-rw-r--r--lib/libz/gzread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libz/gzread.c b/lib/libz/gzread.c
index fecc36b6988e..5c37babe4ec1 100644
--- a/lib/libz/gzread.c
+++ b/lib/libz/gzread.c
@@ -3,6 +3,8 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
+/* $FreeBSD$ */
+
#include "gzguts.h"
#include <unistd.h>
@@ -56,7 +58,8 @@ local int gz_avail(state)
if (state->err != Z_OK)
return -1;
if (state->eof == 0) {
- if (gz_load(state, state->in, state->size, &(strm->avail_in)) == -1)
+ if (gz_load(state, state->in, state->size,
+ (unsigned *)&(strm->avail_in)) == -1)
return -1;
strm->next_in = state->in;
}