From 5de8c6b70eaedf94c6c1c26ff227de6ebba3dfa5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 4 Jul 2024 10:29:10 +0200 Subject: [PATCH] pointer.h: Fix the rcu_cmpxchg_pointer documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the description of rcu_cmpxchg_pointer() function that had switched new and old pointers. Signed-off-by: Ondřej Surý Signed-off-by: Mathieu Desnoyers --- include/urcu/pointer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/urcu/pointer.h b/include/urcu/pointer.h index a670272..56a7718 100644 --- a/include/urcu/pointer.h +++ b/include/urcu/pointer.h @@ -47,7 +47,7 @@ extern "C" { #define rcu_dereference _rcu_dereference /* - * type *rcu_cmpxchg_pointer(type **ptr, type *new, type *old) + * type *rcu_cmpxchg_pointer(type **ptr, type *old, type *new) * type *rcu_xchg_pointer(type **ptr, type *new) * void rcu_set_pointer(type **ptr, type *new) * -- 2.34.1