summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 14:27:35 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 14:27:35 +1100
commita1690d08b4ce6a1a40786048a6299c2b2d60507f (patch)
tree52cac4c80f858803b96bc9afd302b180952841c9 /sshlogin.c
parent90fdfaf69c9c62476689ccd2dbafe1cce56ee1bd (diff)
downloadopenssh-git-a1690d08b4ce6a1a40786048a6299c2b2d60507f.tar.gz
- deraadt@cvs.openbsd.org 2006/03/25 18:36:15
[sshlogin.c sshlogin.h] nicer size_t and time_t types
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 72c8252d..4f65b5e9 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshlogin.c,v 1.16 2006/03/25 13:17:03 djm Exp $ */
+/* $OpenBSD: sshlogin.c,v 1.17 2006/03/25 18:36:15 deraadt Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -54,15 +54,15 @@ extern ServerOptions options;
* information is not available. This must be called before record_login.
* The host the user logged in from will be returned in buf.
*/
-u_long
+time_t
get_last_login_time(uid_t uid, const char *logname,
- char *buf, u_int bufsize)
+ char *buf, size_t bufsize)
{
struct logininfo li;
login_get_lastlog(&li, uid);
strlcpy(buf, li.hostname, bufsize);
- return li.tv_sec;
+ return (time_t)li.tv_sec;
}
/*