summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-12-02 23:45:37 +0000
committerRyan Bloom <rbb@apache.org>2000-12-02 23:45:37 +0000
commit6bc27eb92650d57084de46b0f4ce6d121034f351 (patch)
tree6c257f8c30c03cb0d5f2ac918450aa2b096d36aa /shmem
parentb000d7c04e97fb4bfb4583b1246d2d3a37cd88ad (diff)
downloadapr-6bc27eb92650d57084de46b0f4ce6d121034f351.tar.gz
Fix a compile break on BeOS and FreeBSD. We don't want to add the size
of the void *, we want to add the size of the apr_shmem_t * variable. Submitted by: Jeff Trawick and Sam TH <sam@uchicago.edu> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60850 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r--shmem/unix/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shmem/unix/shmem.c b/shmem/unix/shmem.c
index 4970b19d8..9e901bf67 100644
--- a/shmem/unix/shmem.c
+++ b/shmem/unix/shmem.c
@@ -63,7 +63,7 @@ struct shmem_t {
apr_status_t apr_shm_init(struct shmem_t **m, apr_size_t reqsize, const char *file, apr_pool_t *cont)
{
- MM *newmm = mm_create(reqsize + sizeof(*newmm), file, MM_ALLOCATE_ENOUGH);
+ MM *newmm = mm_create(reqsize + sizeof(**m), file, MM_ALLOCATE_ENOUGH);
if (newmm == NULL) {
return errno;
}