summaryrefslogtreecommitdiff
path: root/sshlogin.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-23 21:23:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-23 21:23:20 +0000
commit5c3855210ef20be5931d4b58f641d71bc3b203e8 (patch)
treede100fe07cedd57448d9d4bd5bd23fa602c408b7 /sshlogin.c
parent836f0e9d9a847ad0510ff50b2bedc58e295e0913 (diff)
- deraadt@cvs.openbsd.org 2002/06/23 03:30:58
[scard.c ssh-dss.c ssh-rsa.c sshconnect.c sshconnect2.c sshd.c sshlogin.c sshpty.c] various KNF and %d for unsigned
Diffstat (limited to 'sshlogin.c')
-rw-r--r--sshlogin.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sshlogin.c b/sshlogin.c
index 78c51abd6..e76f94534 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.3 2001/12/19 07:18:56 deraadt Exp $"); 42RCSID("$OpenBSD: sshlogin.c,v 1.4 2002/06/23 03:30:17 deraadt Exp $");
43 43
44#include "loginrec.h" 44#include "loginrec.h"
45 45
@@ -48,10 +48,9 @@ RCSID("$OpenBSD: sshlogin.c,v 1.3 2001/12/19 07:18:56 deraadt Exp $");
48 * information is not available. This must be called before record_login. 48 * information is not available. This must be called before record_login.
49 * The host the user logged in from will be returned in buf. 49 * The host the user logged in from will be returned in buf.
50 */ 50 */
51
52u_long 51u_long
53get_last_login_time(uid_t uid, const char *logname, 52get_last_login_time(uid_t uid, const char *logname,
54 char *buf, u_int bufsize) 53 char *buf, u_int bufsize)
55{ 54{
56 struct logininfo li; 55 struct logininfo li;
57 56
@@ -64,10 +63,9 @@ get_last_login_time(uid_t uid, const char *logname,
64 * Records that the user has logged in. I these parts of operating systems 63 * Records that the user has logged in. I these parts of operating systems
65 * were more standardized. 64 * were more standardized.
66 */ 65 */
67
68void 66void
69record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, 67record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
70 const char *host, struct sockaddr * addr) 68 const char *host, struct sockaddr * addr)
71{ 69{
72 struct logininfo *li; 70 struct logininfo *li;
73 71
@@ -92,7 +90,6 @@ record_utmp_only(pid_t pid, const char *ttyname, const char *user,
92#endif 90#endif
93 91
94/* Records that the user has logged out. */ 92/* Records that the user has logged out. */
95
96void 93void
97record_logout(pid_t pid, const char *ttyname, const char *user) 94record_logout(pid_t pid, const char *ttyname, const char *user)
98{ 95{