]> andersk Git - openssh.git/blobdiff - sshlogin.c
- deraadt@cvs.openbsd.org 2006/03/25 18:36:15
[openssh.git] / sshlogin.c
index 72c8252d1569cf0dbd9b95ff0a324ceb2265011e..4f65b5e919805766ec06ed1ce17de580db3af5c5 100644 (file)
@@ -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;
 }
 
 /*
This page took 0.972367 seconds and 4 git commands to generate.