diff options
author | sascha <sascha@13f79535-47bb-0310-9956-ffa450edef68> | 2000-01-03 13:41:06 +0000 |
---|---|---|
committer | sascha <sascha@13f79535-47bb-0310-9956-ffa450edef68> | 2000-01-03 13:41:06 +0000 |
commit | 487836a81e6dca2c83c8a5fe85895159417db253 (patch) | |
tree | 3e16d22a1ee06ed272a06aa7e035701e2f53e51a /mmap | |
parent | 594cc53898e86b84885cdf3b169ff743e10ed60b (diff) | |
download | libapr-487836a81e6dca2c83c8a5fe85895159417db253.tar.gz |
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
Diffstat (limited to 'mmap')
-rw-r--r-- | mmap/unix/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |