summaryrefslogtreecommitdiff
path: root/gzread.c
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2015-04-26 21:31:49 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-04-26 21:31:49 +0200
commit33e9bf680a3ec6c826fd6c1572bb54451bd52c33 (patch)
treec588a848af263af7f03bd75d49fa27ce1625d32a /gzread.c
parent429cebfd68ee7615123653e64ce18de6f499030f (diff)
Cleanup: Replace 'z_streamp' with 'z_stream *'
Diffstat (limited to 'gzread.c')
-rw-r--r--gzread.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gzread.c b/gzread.c
index 1f7a2e7..7448b84 100644
--- a/gzread.c
+++ b/gzread.c
@@ -47,7 +47,7 @@ local int gz_load(gz_statep state, unsigned char *buf, unsigned len, unsigned *h
local int gz_avail(gz_statep state)
{
unsigned got;
- z_streamp strm = &(state->strm);
+ z_stream *strm = &(state->strm);
if (state->err != Z_OK && state->err != Z_BUF_ERROR)
return -1;
@@ -80,7 +80,7 @@ local int gz_avail(gz_statep state)
gz_look() will return 0 on success or -1 on failure. */
local int gz_look(gz_statep state)
{
- z_streamp strm = &(state->strm);
+ z_stream *strm = &(state->strm);
/* allocate read buffers and inflate memory */
if (state->size == 0) {
@@ -167,7 +167,7 @@ local int gz_decomp(gz_statep state)
{
int ret = Z_OK;
unsigned had;
- z_streamp strm = &(state->strm);
+ z_stream *strm = &(state->strm);
/* fill output buffer up to end of deflate stream */
had = strm->avail_out;
@@ -218,7 +218,7 @@ local int gz_decomp(gz_statep state)
end of the input file has been reached and all data has been processed. */
local int gz_fetch(gz_statep state)
{
- z_streamp strm = &(state->strm);
+ z_stream *strm = &(state->strm);
do {
switch(state->how) {
@@ -282,7 +282,7 @@ int ZEXPORT gzread(file, buf, len)
{
unsigned got, n;
gz_statep state;
- z_streamp strm;
+ z_stream *strm;
/* get internal structure */
if (file == NULL)