git: 20bb77c4b918 - main - jls(8): Complete libxo transition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 12 Oct 2024 18:30:20 UTC
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=20bb77c4b91837837dbccc40c9cc90eb43026131 commit 20bb77c4b91837837dbccc40c9cc90eb43026131 Author: Yan-Hao Wang <yanhaowang@FreeBSD.org> AuthorDate: 2024-10-12 15:14:00 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2024-10-12 18:21:47 +0000 jls(8): Complete libxo transition Reviewed by: des MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41413 --- usr.sbin/jls/jls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/jls/jls.c b/usr.sbin/jls/jls.c index 5c26965b045b..e172c4698f57 100644 --- a/usr.sbin/jls/jls.c +++ b/usr.sbin/jls/jls.c @@ -37,7 +37,6 @@ #include <arpa/inet.h> #include <netinet/in.h> -#include <err.h> #include <errno.h> #include <jail.h> #include <limits.h> @@ -248,8 +247,9 @@ main(int argc, char **argv) } xo_close_list("jail"); xo_close_container("jail-information"); - xo_finish(); - return (0); + if (xo_finish() < 0) + xo_err(1, "stdout"); + exit(0); } static int