summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshlogin.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-06-23 03:30:17 +0000
committerderaadt <deraadt@openbsd.org>2002-06-23 03:30:17 +0000
commit7a233fa5f03d17099b74519e3db5f72746878a08 (patch)
tree0b6b5b2076e25c17c72222a1639327d0728d2f3d /usr.bin/ssh/sshlogin.c
parentKNF (diff)
downloadwireguard-openbsd-7a233fa5f03d17099b74519e3db5f72746878a08.tar.xz
wireguard-openbsd-7a233fa5f03d17099b74519e3db5f72746878a08.zip
various KNF and %d for unsigned
Diffstat (limited to 'usr.bin/ssh/sshlogin.c')
-rw-r--r--usr.bin/ssh/sshlogin.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/ssh/sshlogin.c b/usr.bin/ssh/sshlogin.c
index c6e2ad4fe27..9e9841cec9a 100644
--- a/usr.bin/ssh/sshlogin.c
+++ b/usr.bin/ssh/sshlogin.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshlogin.c,v 1.3 2001/12/19 07:18:56 deraadt Exp $");
+RCSID("$OpenBSD: sshlogin.c,v 1.4 2002/06/23 03:30:17 deraadt Exp $");
#include <util.h>
#include <utmp.h>
@@ -51,10 +51,9 @@ RCSID("$OpenBSD: sshlogin.c,v 1.3 2001/12/19 07:18:56 deraadt Exp $");
* information is not available. This must be called before record_login.
* The host the user logged in from will be returned in buf.
*/
-
u_long
get_last_login_time(uid_t uid, const char *logname,
- char *buf, u_int bufsize)
+ char *buf, u_int bufsize)
{
struct lastlog ll;
char *lastlog;
@@ -83,10 +82,9 @@ get_last_login_time(uid_t uid, const char *logname,
* Records that the user has logged in. I these parts of operating systems
* were more standardized.
*/
-
void
record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
- const char *host, struct sockaddr * addr)
+ const char *host, struct sockaddr * addr)
{
int fd;
struct lastlog ll;
@@ -126,7 +124,6 @@ record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
}
/* Records that the user has logged out. */
-
void
record_logout(pid_t pid, const char *ttyname)
{