From 487836a81e6dca2c83c8a5fe85895159417db253 Mon Sep 17 00:00:00 2001 From: sascha Date: Mon, 3 Jan 2000 13:41:06 +0000 Subject: Pointer arithmetic using void * is non-sense. GCC implicitly converts these constructs to char *. To support other compilers, we cast explicitly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59567 13f79535-47bb-0310-9956-ffa450edef68 --- mmap/unix/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mmap') diff --git a/mmap/unix/common.c b/mmap/unix/common.c index 0be70c3a2..265505576 100644 --- a/mmap/unix/common.c +++ b/mmap/unix/common.c @@ -75,7 +75,7 @@ ap_status_t ap_mmap_offset(void **addr, ap_mmap_t *mmap, ap_off_t offset) if (offset < 0 || offset > mmap->size) return APR_EINVAL; - (*addr) = mmap->mm + offset; + (*addr) = (char *) mmap->mm + offset; return APR_SUCCESS; } -- cgit v1.2.1