summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-03-01 18:33:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-03-01 18:33:50 +0000
commitb500ce09e92b053531e33b2a5204a792bd4a4c68 (patch)
tree8eb5a42d5dc5747ec4f9f32f108be3946593764f /usr.bin
parent035a95645e9c40f085cfc15838ec3ab36b18cd44 (diff)
Wall
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/login/failedlogin.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/login/failedlogin.c b/usr.bin/login/failedlogin.c
index b2ed640c265..e6576c1a09b 100644
--- a/usr.bin/login/failedlogin.c
+++ b/usr.bin/login/failedlogin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: failedlogin.c,v 1.7 1999/08/17 09:13:15 millert Exp $ */
+/* $OpenBSD: failedlogin.c,v 1.8 2000/03/01 18:33:49 deraadt Exp $ */
/*
* Copyright (c) 1996 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: failedlogin.c,v 1.7 1999/08/17 09:13:15 millert Exp $";
+static char rcsid[] = "$OpenBSD: failedlogin.c,v 1.8 2000/03/01 18:33:49 deraadt Exp $";
#endif /* not lint */
/*
@@ -119,8 +119,9 @@ check_failedlogin(uid)
/* There was a bad login */
was_bad = 1;
if (failedlogin.count > 1)
- (void)printf("There have been %u unsuccessful login attempts to your account.\n",
- failedlogin.count);
+ printf("There have been %ld unsuccessful login "
+ "attempts to your account.\n",
+ (long)failedlogin.count);
(void)printf("Last unsuccessful login: %.*s", 24-5,
(char *)ctime(&failedlogin.bl_time));
(void)printf(" on %.*s",