tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_shm.c
Date Mon, 14 Feb 2005 09:44:36 GMT
mturk       2005/02/14 01:44:36

  Modified:    jk/native/common jk_shm.c
  Log:
  Use caddr_t as casting type for mmap.
  
  Revision  Changes    Path
  1.12      +3 -3      jakarta-tomcat-connectors/jk/native/common/jk_shm.c
  
  Index: jk_shm.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_shm.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- jk_shm.c	13 Feb 2005 12:43:55 -0000	1.11
  +++ jk_shm.c	14 Feb 2005 09:44:36 -0000	1.12
  @@ -246,11 +246,11 @@
           return rc;
       }
   
  -    base = mmap(NULL, jk_shmem.size,
  +    base = mmap((caddr_t)0, jk_shmem.size,
                   PROT_READ | PROT_WRITE,
                   MAP_FILE | MAP_SHARED,
                   fd, 0);
  -    if (base == (void *)MAP_FAILED || base == NULL) {
  +    if (base == (caddr_t)MAP_FAILED || base == (caddr_t)0) {
           rc = errno;
           close(fd);
           jk_shmem.size = 0;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message