Change variable from long to time_t where they are passed by reference
to time().
This commit is contained in:
parent
4bf15af17e
commit
17ce12487f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36062
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user