wfqueue: fix type-incorrect assignment
[urcu.git] / urcu / static / wfqueue.h
index 790931bef25db04d2156fe0cd39dd260b31a0474..19314f5f9223498ba45b749c4af678ed607cf2fb 100644 (file)
@@ -30,7 +30,7 @@
 #include <assert.h>
 #include <poll.h>
 #include <urcu/compiler.h>
-#include <urcu/uatomic_arch.h>
+#include <urcu/uatomic.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -75,7 +75,7 @@ static inline void _cds_wfq_enqueue(struct cds_wfq_queue *q,
         * structure containing node and setting node->next to NULL before
         * publication.
         */
-       old_tail = uatomic_xchg(&q->tail, node);
+       old_tail = uatomic_xchg(&q->tail, &node->next);
        /*
         * At this point, dequeuers see a NULL old_tail->next, which indicates
         * that the queue is being appended to. The following store will append
This page took 0.022342 seconds and 4 git commands to generate.