Fix rcu_assign_pointer() dynamic linking behavior
[urcu.git] / urcu.h
diff --git a/urcu.h b/urcu.h
index 9d4cd3c2b7ef6cbd43988cef06f4f694f063626b..a0aac2195feea64a90043866950cfe0322eb0df7 100644 (file)
--- a/urcu.h
+++ b/urcu.h
@@ -74,7 +74,7 @@ extern void *rcu_dereference(void *p);
 extern void *rcu_assign_pointer_sym(void **p, void *v);
 
 #define rcu_assign_pointer(p, v)                       \
 extern void *rcu_assign_pointer_sym(void **p, void *v);
 
 #define rcu_assign_pointer(p, v)                       \
-       rcu_assign_pointer_sym((void **)(p), (v))
+       rcu_assign_pointer_sym((void **)(&(p)), (v))
 
 extern void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new);
 #define rcu_cmpxchg_pointer(p, old, _new)              \
 
 extern void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new);
 #define rcu_cmpxchg_pointer(p, old, _new)              \
This page took 0.029225 seconds and 4 git commands to generate.