summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/refcnt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/refcnt.h')
-rw-r--r--src/pulsecore/refcnt.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pulsecore/refcnt.h b/src/pulsecore/refcnt.h
index 43433ff8..64271ab2 100644
--- a/src/pulsecore/refcnt.h
+++ b/src/pulsecore/refcnt.h
@@ -27,18 +27,18 @@
#include <pulsecore/atomic.h>
#define PA_REFCNT_DECLARE \
- pa_atomic_int_t _ref
+ pa_atomic_t _ref
#define PA_REFCNT_INIT(p) \
- pa_atomic_store(&p->_ref, 1)
+ pa_atomic_store(&(p)->_ref, 1)
#define PA_REFCNT_INC(p) \
- pa_atomic_inc(&p->_ref)
+ pa_atomic_inc(&(p)->_ref)
#define PA_REFCNT_DEC(p) \
- (pa_atomic_dec(&p->_ref)-1)
+ (pa_atomic_dec(&(p)->_ref)-1)
#define PA_REFCNT_VALUE(p) \
- pa_atomic_load(&p->_ref)
+ pa_atomic_load(&(p)->_ref)
#endif