summaryrefslogtreecommitdiffstats
path: root/usr.bin/last/last.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/last/last.c')
-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