diff options
author | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2004-11-17 01:07:02 +0000 |
---|---|---|
committer | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2004-11-17 01:07:02 +0000 |
commit | 6c396ff5c726ad3ccba9f8454d1d41ab65513945 (patch) | |
tree | 9fe875f78a137b87968ce8d5bcf5b554f2608fab /atomic/netware/apr_atomic.c | |
parent | 9ffc3ba97e22859b387d44eaf5d48e559c6e8874 (diff) | |
download | libapr-6c396ff5c726ad3ccba9f8454d1d41ab65513945.tar.gz |
Merge in changes from trunk to 1.0.x.
Changes have been reviewed to be binary compatible with 1.0.0 by Justin to
the best of his sleep-deprived ability.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.0.x@76072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic/netware/apr_atomic.c')
-rw-r--r-- | atomic/netware/apr_atomic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/atomic/netware/apr_atomic.c b/atomic/netware/apr_atomic.c index 17ffe14d5..069b1bd16 100644 --- a/atomic/netware/apr_atomic.c +++ b/atomic/netware/apr_atomic.c @@ -60,8 +60,7 @@ APR_DECLARE(apr_uint32_t) apr_atomic_xchg32(volatile apr_uint32_t *mem, apr_uint APR_DECLARE(int) apr_atomic_dec32(volatile apr_uint32_t *mem) { - atomic_dec((unsigned long *)mem); - return *mem; + return (atomic_xchgadd((unsigned long *)mem, 0xFFFFFFFF) - 1); } APR_DECLARE(void *) apr_atomic_casptr(volatile void **mem, void *with, const void *cmp) |