You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sa...@hyperreal.org on 2000/01/03 14:41:06 UTC

cvs commit: apache-2.0/src/lib/apr/mmap/unix common.c

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;
   }