Mercurial > dovecot > original-hg > dovecot-1.2
changeset 242:015910e16bfa HEAD
portability fixes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 16 Sep 2002 08:09:34 +0300 |
parents | fc8ad9d30478 |
children | 1f6f8e4557b1 |
files | src/lib/mmap-anon.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/mmap-anon.c Mon Sep 16 08:00:37 2002 +0300 +++ b/src/lib/mmap-anon.c Mon Sep 16 08:09:34 2002 +0300 @@ -31,7 +31,6 @@ #endif #undef HAVE_LINUX_MREMAP -#undef MAP_ANONYMOUS #ifndef HAVE_LINUX_MREMAP @@ -127,7 +126,8 @@ if (movable_mmap_base == NULL) { /* this is fully guessing */ movable_mmap_base = ((char *) mmap_anon) + MMAP_BASE_MOVE; - movable_mmap_base = NULL + PAGE_ALIGN(movable_mmap_base - NULL); + movable_mmap_base = (char *) NULL + + PAGE_ALIGN((size_t) (movable_mmap_base - NULL)); } do {