diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c --- a/usr.sbin/lastlogin/lastlogin.c +++ b/usr.sbin/lastlogin/lastlogin.c @@ -38,7 +38,6 @@ __RCSID("$NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $"); #endif -#include #include #include #include @@ -147,7 +146,8 @@ xo_close_list("lastlogin"); xo_close_container("lastlogin-information"); - xo_finish(); + if (xo_finish() < 0) + xo_err(1, "stdout"); exit(0); } @@ -170,6 +170,5 @@ usage(void) { xo_error("usage: lastlogin [-f file] [-rt] [user ...]\n"); - xo_finish(); exit(1); }