rpki-client: rework ip_addr_check_overlap()
authortb <tb@openbsd.org>
Wed, 18 Oct 2023 07:08:19 +0000 (07:08 +0000)
committertb <tb@openbsd.org>
Wed, 18 Oct 2023 07:08:19 +0000 (07:08 +0000)
commit8b5bbbc55ef7d9951e089a556a792f7b49c57925
treef7bced65b9b9a564f25406784bea85ddedda2584
parente88acb210697d406d9df25a2174fb0c7053ebe9a
rpki-client: rework ip_addr_check_overlap()

Avoid conditional early returns and significantly simplify the printing
of ip addresses/ranges by using the new ip_warn(). This also eliminates
an extremely weird usage of the comma operator and reduces noise levels
quite a bit.

ok claudio job
usr.sbin/rpki-client/ip.c