summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sshlogin.c b/sshlogin.c
index e1cc4cc82..22cfd344d 100644
--- a/sshlogin.c
+++ b/sshlogin.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: sshlogin.c,v 1.7 2003/06/12 07:57:38 markus Exp $"); 42RCSID("$OpenBSD: sshlogin.c,v 1.8 2004/06/21 17:36:31 avsm Exp $");
43 43
44#include "loginrec.h" 44#include "loginrec.h"
45 45
@@ -64,12 +64,12 @@ get_last_login_time(uid_t uid, const char *logname,
64 * systems were more standardized. 64 * systems were more standardized.
65 */ 65 */
66void 66void
67record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, 67record_login(pid_t pid, const char *tty, const char *user, uid_t uid,
68 const char *host, struct sockaddr * addr, socklen_t addrlen) 68 const char *host, struct sockaddr * addr, socklen_t addrlen)
69{ 69{
70 struct logininfo *li; 70 struct logininfo *li;
71 71
72 li = login_alloc_entry(pid, user, host, ttyname); 72 li = login_alloc_entry(pid, user, host, tty);
73 login_set_addr(li, addr, addrlen); 73 login_set_addr(li, addr, addrlen);
74 login_login(li); 74 login_login(li);
75 login_free_entry(li); 75 login_free_entry(li);
@@ -91,11 +91,11 @@ record_utmp_only(pid_t pid, const char *ttyname, const char *user,
91 91
92/* Records that the user has logged out. */ 92/* Records that the user has logged out. */
93void 93void
94record_logout(pid_t pid, const char *ttyname, const char *user) 94record_logout(pid_t pid, const char *tty, const char *user)
95{ 95{
96 struct logininfo *li; 96 struct logininfo *li;
97 97
98 li = login_alloc_entry(pid, user, NULL, ttyname); 98 li = login_alloc_entry(pid, user, NULL, tty);
99 login_logout(li); 99 login_logout(li);
100 login_free_entry(li); 100 login_free_entry(li);
101} 101}