powerpc/boot: Use correct zlib types for comparison

Avoids this warning:

arch/powerpc/boot/gunzip_util.c:118:9: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent b09c2ec4
...@@ -112,10 +112,10 @@ int gunzip_partial(struct gunzip_state *state, void *dst, int dstlen) ...@@ -112,10 +112,10 @@ int gunzip_partial(struct gunzip_state *state, void *dst, int dstlen)
r = zlib_inflate(&state->s, Z_FULL_FLUSH); r = zlib_inflate(&state->s, Z_FULL_FLUSH);
if (r != Z_OK && r != Z_STREAM_END) if (r != Z_OK && r != Z_STREAM_END)
fatal("inflate returned %d msg: %s\n\r", r, state->s.msg); fatal("inflate returned %d msg: %s\n\r", r, state->s.msg);
len = state->s.next_out - (unsigned char *)dst; len = state->s.next_out - (Byte *)dst;
} else { } else {
/* uncompressed image */ /* uncompressed image */
len = min(state->s.avail_in, (unsigned)dstlen); len = min(state->s.avail_in, (uLong)dstlen);
memcpy(dst, state->s.next_in, len); memcpy(dst, state->s.next_in, len);
state->s.next_in += len; state->s.next_in += len;
state->s.avail_in -= len; state->s.avail_in -= len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment