git: queue(3): Simplify STAILQ_LAST() by using __containerof()
Aaron LI
aly at crater.dragonflybsd.org
Thu Dec 21 00:54:13 PST 2023
commit 475ec87ebbb44193dc8392f26180986976557c59
Author: Aaron LI <aly at aaronly.me>
Date: Thu Nov 30 10:13:01 2023 +0800
queue(3): Simplify STAILQ_LAST() by using __containerof()
Note that it's necessary to use 'field.stqe_next' instead of 'field';
otherwise, __containerof() would warn about the type mismatch.
Obtained-from: FreeBSD
Summary of changes:
sys/sys/queue.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/475ec87ebbb44193dc8392f26180986976557c59
--
DragonFly BSD source repository
More information about the Commits
mailing list