summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-01-10 02:10:13 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-01-10 02:10:13 +0000
commite1ff4b85e0a12924efee4c3b70248b7a51c6aa89 (patch)
tree2748d785f9adc3524fb1b4cda8516fae3634a489 /shmem
parent8a5947a758c4fc8fbfe88493f936f545467159e9 (diff)
downloadlibapr-e1ff4b85e0a12924efee4c3b70248b7a51c6aa89.tar.gz
get some pointer arithmetic to compile on picky compilers
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62740 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r--shmem/unix/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c
index 0b21449d8..149488d97 100644
--- a/shmem/unix/shm.c
+++ b/shmem/unix/shm.c
@@ -153,7 +153,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m,
/* store the real size in the metadata */
*(apr_size_t*)(new_m->base) = new_m->realsize;
/* metadata isn't usable */
- new_m->usable = new_m->base + sizeof(apr_size_t);
+ new_m->usable = (char *)new_m->base + sizeof(apr_size_t);
*m = new_m;
return APR_SUCCESS;