diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-11 03:17:58 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-11 03:17:58 +0000 |
commit | cc013a0a89e2d76aa5619535ae63b8cfdc2f770f (patch) | |
tree | abe5844ecb7c13d1426d987185de313ea640f225 /shmem | |
parent | d02f2ff035403a2c7932dfc69e151c6cf129008a (diff) | |
download | libapr-cc013a0a89e2d76aa5619535ae63b8cfdc2f770f.tar.gz |
HP compiler doesn't like using < operator with pointer and scalar
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62745 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/unix/shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c index 149488d97..1ae3cfc3d 100644 --- a/shmem/unix/shm.c +++ b/shmem/unix/shm.c @@ -176,7 +176,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, return errno; } - if ((new_m->base = shmat(shmid, NULL, 0)) < 0) { + if ((new_m->base = shmat(shmid, NULL, 0)) == (void *)-1) { return errno; } |