summaryrefslogtreecommitdiff
path: root/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'login.c')
-rw-r--r--login.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/login.c b/login.c
index b4a8bafca..de2c89cba 100644
--- a/login.c
+++ b/login.c
@@ -18,7 +18,7 @@
18 */ 18 */
19 19
20#include "includes.h" 20#include "includes.h"
21RCSID("$Id: login.c,v 1.23 2000/04/16 01:18:43 damien Exp $"); 21RCSID("$Id: login.c,v 1.24 2000/04/19 21:42:22 damien Exp $");
22 22
23#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX) 23#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
24# include <utmpx.h> 24# include <utmpx.h>
@@ -136,7 +136,7 @@ get_last_login_time(uid_t uid, const char *logname,
136 */ 136 */
137 137
138void 138void
139record_login(int pid, const char *ttyname, const char *user, uid_t uid, 139record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
140 const char *host, struct sockaddr * addr) 140 const char *host, struct sockaddr * addr)
141{ 141{
142#if defined(_PATH_LASTLOG) && !defined(DISABLE_LASTLOG) 142#if defined(_PATH_LASTLOG) && !defined(DISABLE_LASTLOG)
@@ -274,7 +274,7 @@ record_login(int pid, const char *ttyname, const char *user, uid_t uid,
274/* Records that the user has logged out. */ 274/* Records that the user has logged out. */
275 275
276void 276void
277record_logout(int pid, const char *ttyname) 277record_logout(pid_t pid, const char *ttyname)
278{ 278{
279#ifdef HAVE_LIBUTIL_LOGIN 279#ifdef HAVE_LIBUTIL_LOGIN
280 const char *line = ttyname + 5; /* /dev/ttyq8 -> ttyq8 */ 280 const char *line = ttyname + 5; /* /dev/ttyq8 -> ttyq8 */