Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109025386
D41414.id125902.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
969 B
Referenced Files
None
Subscribers
None
D41414.id125902.diff
View Options
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
@@ -39,7 +39,6 @@
__RCSID("$NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $");
#endif
-#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -84,7 +83,7 @@
argc = xo_parse_args(argc, argv);
if (argc < 0)
- exit(1);
+ exit(EXIT_FAILURE);
while ((ch = getopt(argc, argv, "f:rt")) != -1) {
switch (ch) {
@@ -145,9 +144,10 @@
xo_close_list("lastlogin");
xo_close_container("lastlogin-information");
- xo_finish();
+ if (xo_finish() < 0)
+ xo_err(EXIT_FAILURE, "stdout");
- exit(0);
+ exit(EXIT_SUCCESS);
}
/* Duplicate the output of last(1) */
@@ -168,6 +168,7 @@
usage(void)
{
xo_error("usage: lastlogin [-f file] [-rt] [user ...]\n");
- xo_finish();
- exit(1);
+ if (xo_finish() < 0)
+ xo_err(EXIT_FAILURE, "stdout");
+ exit(EXIT_FAILURE);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 7:17 PM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16369222
Default Alt Text
D41414.id125902.diff (969 B)
Attached To
Mode
D41414: lastlogin: Complete libxo transition.
Attached
Detach File
Event Timeline
Log In to Comment