From 41abcb86d379401dcab55be5eb9fe2fad3a4412a Mon Sep 17 00:00:00 2001 From: jb Date: Fri, 15 May 1998 12:28:43 +0000 Subject: Change variable from long to time_t where they are passed by reference to time(). --- usr.bin/last/last.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c index 9c16bff..708a086 100644 --- a/usr.bin/last/last.c +++ b/usr.bin/last/last.c @@ -75,7 +75,7 @@ ARG *arglist; /* head of linked list */ LIST_HEAD(ttylisthead, ttytab) ttylist; struct ttytab { - long logout; /* log out time */ + time_t logout; /* log out time */ char tty[UT_LINESIZE + 1]; /* terminal name */ LIST_ENTRY(ttytab) list; }; @@ -164,7 +164,8 @@ wtmp() struct utmp *bp; /* current structure */ struct ttytab *tt, *ttx; /* ttylist entry */ struct stat stb; /* stat of file for size */ - long bl, delta; /* time difference */ + long bl; + time_t delta; /* time difference */ int bytes, wfd; char *crmsg; char ct[80]; -- cgit v1.1