bnicholes 2002/10/25 09:14:22
Modified: include apr_atomic.h Log: Avoiding some compiler type mismatch warnings on NetWare Revision Changes Path 1.41 +2 -2 apr/include/apr_atomic.h Index: apr_atomic.h =================================================================== RCS file: /home/cvs/apr/include/apr_atomic.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- apr_atomic.h 24 Oct 2002 22:46:11 -0000 1.40 +++ apr_atomic.h 25 Oct 2002 16:14:22 -0000 1.41 @@ -180,8 +180,8 @@ #define apr_atomic_set(mem, val) (*mem = val) #define apr_atomic_read(mem) (*mem) #define apr_atomic_init(pool) APR_SUCCESS -#define apr_atomic_cas(mem,with,cmp) atomic_cmpxchg(mem,cmp,with) -#define apr_atomic_casptr(mem,with,cmp) (void*)atomic_cmpxchg((apr_uint32_t *)(mem),(long)(cmp),(long)(with)) +#define apr_atomic_cas(mem,with,cmp) atomic_cmpxchg((unsigned long *)(mem),(unsigned long)(cmp),(unsigned long)(with)) +#define apr_atomic_casptr(mem,with,cmp) (void*)atomic_cmpxchg((unsigned long *)(mem),(unsigned long)(cmp),(unsigned long)(with)) #elif defined(__FreeBSD__)
