Pass a FILE pointer to ometric_output_all() and use fprintf() instead of
authorclaudio <claudio@openbsd.org>
Wed, 30 Nov 2022 10:15:01 +0000 (10:15 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 30 Nov 2022 10:15:01 +0000 (10:15 +0000)
commit60a4dc800e89c136c3b1091294784e601db3353a
tree2d907cec4559f08d8dc7d934f6c240412e65c3ad
parent8aeda1735db8bfc04c8da3c2dca1319aa20480d6
Pass a FILE pointer to ometric_output_all() and use fprintf() instead of
printing to stdout by default. Additionally check if fprintf() fails and
return -1 in that case. With this ometric code can be used in rpki-client.
OK tb@
usr.sbin/bgpctl/ometric.c
usr.sbin/bgpctl/ometric.h
usr.sbin/bgpctl/output_ometric.c