Trivial cast to uchar *

This commit is contained in:
Con Kolivas 2011-02-26 19:45:00 +11:00
parent 9b60d6e703
commit 7acd389382

2
rzip.c
View file

@ -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;