From 7c3ce536c4c0a0c25f092b58ef7adc512ee62473 Mon Sep 17 00:00:00 2001 From: dillon Date: Mon, 29 Oct 2001 00:40:05 +0000 Subject: Fix ctime(&int) due to change to lastlog->ll_time --- usr.sbin/lastlogin/lastlogin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/lastlogin') diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c index 877b215..df8faca 100644 --- a/usr.sbin/lastlogin/lastlogin.c +++ b/usr.sbin/lastlogin/lastlogin.c @@ -116,11 +116,12 @@ output(p, l) struct passwd *p; struct lastlog *l; { + time_t t = int_to_time(l->ll_time); printf("%-*.*s %-*.*s %-*.*s %s", UT_NAMESIZE, UT_NAMESIZE, p->pw_name, UT_LINESIZE, UT_LINESIZE, l->ll_line, UT_HOSTSIZE, UT_HOSTSIZE, l->ll_host, - (l->ll_time) ? ctime(&(l->ll_time)) : "Never logged in\n"); + (l->ll_time) ? ctime(&t) : "Never logged in\n"); } static void -- cgit v1.1