Replace manual loop and duplicate RB_NEXT with RB_FOREACH
authorkn <kn@openbsd.org>
Mon, 21 Nov 2022 22:50:07 +0000 (22:50 +0000)
committerkn <kn@openbsd.org>
Mon, 21 Nov 2022 22:50:07 +0000 (22:50 +0000)
commit408def72c86da2d640648ebfe32644a317bf86de
tree3a6da5e0422f27f232fef91b92542ab3114c58fd
parent181e2e3812899f324e70a5ac90cbbde921abecaa
Replace manual loop and duplicate RB_NEXT with RB_FOREACH

The loop begins with saving a pointer to the next interface, does work and
then gets the same next interface again, for nothing.

Switch to the elsewhere consistently used RB_FOREACH helper.

OK sashan
sys/net/pf_if.c