diff options
Diffstat (limited to 'sshlogin.c')
-rw-r--r-- | sshlogin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sshlogin.c b/sshlogin.c index 72c8252d1..4f65b5e91 100644 --- a/sshlogin.c +++ b/sshlogin.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshlogin.c,v 1.16 2006/03/25 13:17:03 djm Exp $ */ | 1 | /* $OpenBSD: sshlogin.c,v 1.17 2006/03/25 18:36:15 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -54,15 +54,15 @@ extern ServerOptions options; | |||
54 | * information is not available. This must be called before record_login. | 54 | * information is not available. This must be called before record_login. |
55 | * The host the user logged in from will be returned in buf. | 55 | * The host the user logged in from will be returned in buf. |
56 | */ | 56 | */ |
57 | u_long | 57 | time_t |
58 | get_last_login_time(uid_t uid, const char *logname, | 58 | get_last_login_time(uid_t uid, const char *logname, |
59 | char *buf, u_int bufsize) | 59 | char *buf, size_t bufsize) |
60 | { | 60 | { |
61 | struct logininfo li; | 61 | struct logininfo li; |
62 | 62 | ||
63 | login_get_lastlog(&li, uid); | 63 | login_get_lastlog(&li, uid); |
64 | strlcpy(buf, li.hostname, bufsize); | 64 | strlcpy(buf, li.hostname, bufsize); |
65 | return li.tv_sec; | 65 | return (time_t)li.tv_sec; |
66 | } | 66 | } |
67 | 67 | ||
68 | /* | 68 | /* |