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 Fri, 11 Jan 2002 03:17:58 GMT
trawick     02/01/10 19:17:58

  Modified:    shmem/unix shm.c
  Log:
  HP compiler doesn't like using < operator with pointer and scalar
  
  Revision  Changes    Path
  1.3       +1 -1      apr/shmem/unix/shm.c
  
  Index: shm.c
  ===================================================================
  RCS file: /home/cvs/apr/shmem/unix/shm.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- shm.c	10 Jan 2002 02:10:13 -0000	1.2
  +++ shm.c	11 Jan 2002 03:17:58 -0000	1.3
  @@ -176,7 +176,7 @@
               return errno;
           }
   
  -        if ((new_m->base = shmat(shmid, NULL, 0)) < 0) {
  +        if ((new_m->base = shmat(shmid, NULL, 0)) == (void *)-1) {
               return errno;
           }
   
  
  
  

Mime
View raw message