From 1583e7e4483c6b9e7ec6c4f36f096dc1cf858d44 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 27 Aug 2008 13:31:01 +0100 Subject: mini-os: Fix build failure with void* arithmetic. Signed-off-by: Keir Fraser --- extras/mini-os/lib/sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/mini-os/lib') diff --git a/extras/mini-os/lib/sys.c b/extras/mini-os/lib/sys.c index 2141d00c65..21e3b1fec9 100644 --- a/extras/mini-os/lib/sys.c +++ b/extras/mini-os/lib/sys.c @@ -1179,7 +1179,7 @@ int munmap(void *start, size_t length) } } } - start += n * PAGE_SIZE; + start = (char *)start + n * PAGE_SIZE; total -= n; } return 0; -- cgit v1.2.3