diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-03-02 04:05:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-03-02 04:05:45 +0000 |
commit | efec58564f372b6a5965dee2b0262c5aa06b365b (patch) | |
tree | 9de67e796b33cd26c0ddb6c6d72b7fce023fe333 /usr.bin/login | |
parent | f83333cdbfd4fbed341533f5793a8d958fbed7e3 (diff) |
count is unsigned (size_t) so cast to u_long, not long
Diffstat (limited to 'usr.bin/login')
-rw-r--r-- | usr.bin/login/failedlogin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/login/failedlogin.c b/usr.bin/login/failedlogin.c index e6576c1a09b..326d80f844c 100644 --- a/usr.bin/login/failedlogin.c +++ b/usr.bin/login/failedlogin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: failedlogin.c,v 1.8 2000/03/01 18:33:49 deraadt Exp $ */ +/* $OpenBSD: failedlogin.c,v 1.9 2000/03/02 04:05:44 millert 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.8 2000/03/01 18:33:49 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: failedlogin.c,v 1.9 2000/03/02 04:05:44 millert Exp $"; #endif /* not lint */ /* @@ -119,9 +119,9 @@ check_failedlogin(uid) /* There was a bad login */ was_bad = 1; if (failedlogin.count > 1) - printf("There have been %ld unsuccessful login " - "attempts to your account.\n", - (long)failedlogin.count); + (void)printf("There have been %lu unsuccessful " + "login attempts to your account.\n", + (u_long)failedlogin.count); (void)printf("Last unsuccessful login: %.*s", 24-5, (char *)ctime(&failedlogin.bl_time)); (void)printf(" on %.*s", |