apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/shmem/unix shm.c
Date Thu, 10 Jan 2002 02:10:13 GMT
trawick     02/01/09 18:10:13

  Modified:    shmem/unix shm.c
  Log:
  get some pointer arithmetic to compile on picky compilers
  
  Revision  Changes    Path
  1.2       +1 -1      apr/shmem/unix/shm.c
  
  Index: shm.c
  ===================================================================
  RCS file: /home/cvs/apr/shmem/unix/shm.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- shm.c	10 Jan 2002 00:20:06 -0000	1.1
  +++ shm.c	10 Jan 2002 02:10:13 -0000	1.2
  @@ -153,7 +153,7 @@
           /* store the real size in the metadata */
           *(apr_size_t*)(new_m->base) = new_m->realsize;
           /* metadata isn't usable */
  -        new_m->usable = new_m->base + sizeof(apr_size_t);
  +        new_m->usable = (char *)new_m->base + sizeof(apr_size_t);
   
           *m = new_m;
           return APR_SUCCESS;
  
  
  

Mime
View raw message