git: 1caa5d08613f - main - efitable(8): Complete libxo transition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Apr 2024 18:33:09 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/src/commit/?id=1caa5d08613fbd2b79bbf4b03a0fccc182b4193f
commit 1caa5d08613fbd2b79bbf4b03a0fccc182b4193f
Author: Yan-Hao Wang <bses30074@gmail.com>
AuthorDate: 2024-04-03 18:32:00 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2024-04-03 18:32:00 +0000
efitable(8): Complete libxo transition
Reviewed by: des
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D41411
---
usr.sbin/efitable/efitable.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/usr.sbin/efitable/efitable.c b/usr.sbin/efitable/efitable.c
index 637188957b8b..81d8bb999c58 100644
--- a/usr.sbin/efitable/efitable.c
+++ b/usr.sbin/efitable/efitable.c
@@ -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)