diff options
Diffstat (limited to 'login.c')
-rw-r--r-- | login.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "includes.h" | 20 | #include "includes.h" |
21 | RCSID("$Id: login.c,v 1.23 2000/04/16 01:18:43 damien Exp $"); | 21 | RCSID("$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 | ||
138 | void | 138 | void |
139 | record_login(int pid, const char *ttyname, const char *user, uid_t uid, | 139 | record_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 | ||
276 | void | 276 | void |
277 | record_logout(int pid, const char *ttyname) | 277 | record_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 */ |