summaryrefslogtreecommitdiffstats
path: root/usr.bin/last
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-15 12:28:43 +0000
committerjb <jb@FreeBSD.org>1998-05-15 12:28:43 +0000
commit41abcb86d379401dcab55be5eb9fe2fad3a4412a (patch)
treecb1e75d93cfaea137daa3c28cb0b7035d19deed6 /usr.bin/last
parent8c501829fc85849d6c8c800e093f11e217e04552 (diff)
downloadFreeBSD-src-41abcb86d379401dcab55be5eb9fe2fad3a4412a.zip
FreeBSD-src-41abcb86d379401dcab55be5eb9fe2fad3a4412a.tar.gz
Change variable from long to time_t where they are passed by reference
to time().
Diffstat (limited to 'usr.bin/last')
-rw-r--r--usr.bin/last/last.c5
1 files 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];
OpenPOWER on IntegriCloud