diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-02 23:45:37 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-02 23:45:37 +0000 |
commit | b2dc46a56583088897acf3384bb9a15435006214 (patch) | |
tree | 6c257f8c30c03cb0d5f2ac918450aa2b096d36aa /shmem | |
parent | ec162123ef3148bdee9e3e41a00b15a1107452bd (diff) | |
download | libapr-b2dc46a56583088897acf3384bb9a15435006214.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: http://svn.apache.org/repos/asf/apr/apr/trunk@60850 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/unix/shmem.c | 2 |
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; } |