efitable(8): Complete libxo transition

Reviewed by:	des
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D41411
This commit is contained in:
Yan-Hao Wang 2024-04-04 02:32:00 +08:00 committed by Li-Wen Hsu
parent c7bdc25d41
commit 1caa5d0861
No known key found for this signature in database
GPG Key ID: 82B261B14D3BC7AF
1 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,6 @@
#include <sys/efiio.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <err.h>
#include <fcntl.h>
#include <getopt.h>
#include <stdbool.h>
@ -208,7 +207,8 @@ efi_table_print_esrt(const void *data)
xo_close_list("entries");
xo_close_container("esrt");
xo_finish();
if (xo_finish() < 0)
xo_err(EX_IOERR, "stdout");
}
static void
@ -226,7 +226,8 @@ efi_table_print_prop(const void *data)
"{:memory_protection_attribute/%#lx}\n",
prop->memory_protection_attribute);
xo_close_container("prop");
xo_finish();
if (xo_finish() < 0)
xo_err(EX_IOERR, "stdout");
}
static void usage(void)