=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshlogin.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/ssh/sshlogin.c 2001/03/04 01:46:30 1.1 +++ src/usr.bin/ssh/sshlogin.c 2001/03/24 16:43:27 1.2 @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshlogin.c,v 1.1 2001/03/04 01:46:30 djm Exp $"); +RCSID("$OpenBSD: sshlogin.c,v 1.2 2001/03/24 16:43:27 stevesk Exp $"); #include #include @@ -52,11 +52,6 @@ * The host the user logged in from will be returned in buf. */ -/* - * Returns the time when the user last logged in (or 0 if no previous login - * is found). The name of the host used last time is returned in buf. - */ - u_long get_last_login_time(uid_t uid, const char *logname, char *buf, u_int bufsize) @@ -97,7 +92,6 @@ struct lastlog ll; char *lastlog; struct utmp u; - const char *utmp, *wtmp; /* Construct an utmp/wtmp entry. */ memset(&u, 0, sizeof(u)); @@ -105,10 +99,6 @@ u.ut_time = time(NULL); strncpy(u.ut_name, user, sizeof(u.ut_name)); strncpy(u.ut_host, host, sizeof(u.ut_host)); - - /* Figure out the file names. */ - utmp = _PATH_UTMP; - wtmp = _PATH_WTMP; login(&u); lastlog = _PATH_LASTLOG;