You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@locus.apache.org on 2000/12/03 00:45:37 UTC

cvs commit: apr/shmem/unix shmem.c

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 <sa...@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;
       }
  
  
  

Re: cvs commit: apr/shmem/unix shmem.c

Posted by Sam TH <sa...@uchicago.edu>.
On Sat, Dec 02, 2000 at 11:45:37PM -0000, rbb@locus.apache.org wrote:
> 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.

Whee!  It compiles.  Hip hip hooray.  :-)
           
	sam th		     
	sam@uchicago.edu
	http://www.abisource.com/~sam/
	GnuPG Key:  
	http://www.abisource.com/~sam/key