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:18 +0000 (08:33 -0400)
commit143b7f1af13f186f38718af00b3bddf3af8390e2
tree30f894d98580fc343084257306bcdc294b8aab05
parentdecfadf67412c383a6bdd674bea4da7ff4d9c1b4
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.025193 seconds and 4 git commands to generate.