Rewrite some ugly for loops
authortb <tb@openbsd.org>
Tue, 18 Apr 2023 13:31:14 +0000 (13:31 +0000)
committertb <tb@openbsd.org>
Tue, 18 Apr 2023 13:31:14 +0000 (13:31 +0000)
commit3d49904c6e3c36c2ca1ab3071793d9de2403b7ed
tree07e515e122dfbdd8ccad7932b776315e9711ac1b
parent751e2f115a910e8db44ab89ac014cf38c6f93c6a
Rewrite some ugly for loops

This fixes a few KNF issues and ugly line wrapping by using a local
version of nitems(); fix two bsearch() on top.

ok claudio
sbin/pfctl/pfctl_parser.c
usr.sbin/bgpd/parse.y