]> git.lttng.org Git - urcu.git/commit
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:21 +0000 (08:33 -0400)
commit715d052f6657caaac2f4a385ca153572f55460ee
tree36d6522803eb18e0100c124554077c6215c393b4
parent6470d06d0e4b219b5aeb3e2473e178a7f95b5b8f
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.029669 seconds and 4 git commands to generate.