apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apr/shmem/unix shmem.c
Date Sat, 02 Dec 2000 23:45:37 GMT
rbb         00/12/02 15:45:37

  Modified:    shmem/unix shmem.c
  Log:
  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>
  
  Revision  Changes    Path
  1.16      +1 -1      apr/shmem/unix/shmem.c
  
  Index: shmem.c
  ===================================================================
  RCS file: /home/cvs/apr/shmem/unix/shmem.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- shmem.c	2000/12/02 07:08:04	1.15
  +++ shmem.c	2000/12/02 23:45:37	1.16
  @@ -63,7 +63,7 @@
   
   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;
       }
  
  
  

Mime
View raw message