ia64/xen-unstable

changeset 18393:2397555ebcc2

mini-os: Fix build failure with void* arithmetic.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 27 13:31:01 2008 +0100 (2008-08-27)
parents 070688cdf62c
children dade7f0bdc8d
files extras/mini-os/lib/sys.c
line diff
     1.1 --- a/extras/mini-os/lib/sys.c	Wed Aug 27 13:24:35 2008 +0100
     1.2 +++ b/extras/mini-os/lib/sys.c	Wed Aug 27 13:31:01 2008 +0100
     1.3 @@ -1179,7 +1179,7 @@ int munmap(void *start, size_t length)
     1.4                  }
     1.5              }
     1.6          }
     1.7 -        start += n * PAGE_SIZE;
     1.8 +        start = (char *)start + n * PAGE_SIZE;
     1.9          total -= n;
    1.10      }
    1.11      return 0;