From 7acd38938275a54322ab2dee68da624376724f99 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 26 Feb 2011 19:45:00 +1100 Subject: [PATCH] Trivial cast to uchar * --- rzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rzip.c b/rzip.c index e0b2b03..a76b101 100644 --- a/rzip.c +++ b/rzip.c @@ -659,7 +659,7 @@ static void mmap_stdin(uchar *buf, struct rzip_state *st) if (ret == 0) { /* Should be EOF */ print_maxverbose("Shrinking chunk to %lld\n", total); - buf = mremap(buf, st->chunk_size, total, 0); + buf = (uchar *)mremap(buf, st->chunk_size, total, 0); if (unlikely(buf == MAP_FAILED)) fatal("Failed to remap to smaller buf in mmap_stdin\n"); st->mmap_size = st->chunk_size = total;