diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-11 00:37:22 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-13 01:13:45 -0400 |
commit | ce8f150a174c105abddbd3cc193cbba57f9db255 (patch) | |
tree | 426705827fccf91e39c864da9cec515c9277d729 | |
parent | b09c2ec4082c63584491f35df2cb530ee8ca312d (diff) |
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/boot/gunzip_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/boot/gunzip_util.c b/arch/powerpc/boot/gunzip_util.c index ef2aed0f63ca..9dc52501de83 100644 --- a/arch/powerpc/boot/gunzip_util.c +++ b/arch/powerpc/boot/gunzip_util.c | |||
@@ -112,10 +112,10 @@ int gunzip_partial(struct gunzip_state *state, void *dst, int dstlen) | |||
112 | r = zlib_inflate(&state->s, Z_FULL_FLUSH); | 112 | r = zlib_inflate(&state->s, Z_FULL_FLUSH); |
113 | if (r != Z_OK && r != Z_STREAM_END) | 113 | if (r != Z_OK && r != Z_STREAM_END) |
114 | fatal("inflate returned %d msg: %s\n\r", r, state->s.msg); | 114 | fatal("inflate returned %d msg: %s\n\r", r, state->s.msg); |
115 | len = state->s.next_out - (unsigned char *)dst; | 115 | len = state->s.next_out - (Byte *)dst; |
116 | } else { | 116 | } else { |
117 | /* uncompressed image */ | 117 | /* uncompressed image */ |
118 | len = min(state->s.avail_in, (unsigned)dstlen); | 118 | len = min(state->s.avail_in, (uLong)dstlen); |
119 | memcpy(dst, state->s.next_in, len); | 119 | memcpy(dst, state->s.next_in, len); |
120 | state->s.next_in += len; | 120 | state->s.next_in += len; |
121 | state->s.avail_in -= len; | 121 | state->s.avail_in -= len; |