Cleanup ktable_exists() usage and its warning message.
authorclaudio <claudio@openbsd.org>
Thu, 2 Jun 2022 09:29:34 +0000 (09:29 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 2 Jun 2022 09:29:34 +0000 (09:29 +0000)
commit83c33193959cb5b0b814105c10c45f51f27e7fb3
tree8cd1babfeaad5ba064e4749e2b529119ad5bd7f0
parent311b0850f652dd8da4a250a5ead4e1c7c3377a34
Cleanup ktable_exists() usage and its warning message.

Check the return value in all cases and use a common idiom for this check.
OK tb@
usr.sbin/bgpd/kroute.c
usr.sbin/bgpd/parse.y