httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sas...@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/mmap/unix common.c
Date Mon, 03 Jan 2000 13:41:06 GMT
sascha      00/01/03 05:41:06

  Modified:    src/lib/apr/mmap/unix common.c
  Log:
  Pointer arithmetic using void * is non-sense. GCC implicitly converts
  these constructs to char *. To support other compilers, we cast explicitly.
  
  Revision  Changes    Path
  1.7       +1 -1      apache-2.0/src/lib/apr/mmap/unix/common.c
  
  Index: common.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/mmap/unix/common.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -u -r1.6 -r1.7
  --- common.c	1999/12/03 15:18:31	1.6
  +++ common.c	2000/01/03 13:41:06	1.7
  @@ -75,7 +75,7 @@
       if (offset < 0 || offset > mmap->size)
           return APR_EINVAL;
       
  -    (*addr) = mmap->mm + offset;
  +    (*addr) = (char *) mmap->mm + offset;
       return APR_SUCCESS;
   }
   
  
  
  

Mime
View raw message