Fix: list.h: use parenthesis around macro parameters, caa_container_of()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 20 Apr 2021 20:15:39 +0000 (16:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Apr 2021 12:33:00 +0000 (08:33 -0400)
commitc7f4490afcccb5d27b0f17e99ea782b21449e27b
tree3ce7b03d1430169334f8c43b1f450744bc45939b
parenta0b5ef6802894441aae058f9a34628b565a35846
Fix: list.h: use parenthesis around macro parameters, caa_container_of()

The coding style followed across liburcu is to use parenthesis around
macro parameters when it would otherwise lead to unexpected results due
to priority of operators. Fix list.h to follow this coding style.

Use caa_container_of() for cds_list_entry rather than open-code the
pointer arithmetic.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I17052dc0418ad205cf262a6e5b91e591c37462cb
include/urcu/list.h
This page took 0.027707 seconds and 4 git commands to generate.