Verify each fprintf call for success. On failure stop calling fprintf
authorclaudio <claudio@openbsd.org>
Wed, 26 Apr 2023 20:53:17 +0000 (20:53 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 26 Apr 2023 20:53:17 +0000 (20:53 +0000)
commitdb68842d154ba8ae8decd12f838983aba1366e92
tree0b57f9c8503004debdfc01963e4503a76a5d09f0
parent511c0573bb541e86ae29d59499c480efb2370af0
Verify each fprintf call for success. On failure stop calling fprintf
and return -1 in json_do_finish().
tb@ thinks this is not to horrible
usr.sbin/bgpctl/json.c
usr.sbin/bgpctl/json.h