diff options
author | Rob Landley | 2006-01-06 20:59:09 +0000 |
---|---|---|
committer | Rob Landley | 2006-01-06 20:59:09 +0000 |
commit | 84cb76733f0e5853a6c7c2f64b1c168e61dfd933 (patch) | |
tree | e9315133e3d21ea032e5e676ddb3f39e18be5605 /loginutils/login.c | |
parent | 251161f75c0895a1138f87bd80d9bcc38e567444 (diff) | |
download | busybox-84cb76733f0e5853a6c7c2f64b1c168e61dfd933.zip busybox-84cb76733f0e5853a6c7c2f64b1c168e61dfd933.tar.gz |
patch from tito: consolidate delay functions as bb_do_delay()
Diffstat (limited to 'loginutils/login.c')
-rw-r--r-- | loginutils/login.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/loginutils/login.c b/loginutils/login.c index 6632a76..21e8076 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -198,17 +198,7 @@ auth_ok: if ( !failed) break; - { // delay next try - time_t start, now; - - time ( &start ); - now = start; - while ( difftime ( now, start ) < FAIL_DELAY) { - sleep ( FAIL_DELAY ); - time ( &now ); - } - } - + bb_do_delay(FAIL_DELAY); puts("Login incorrect"); username[0] = 0; if ( ++count == 3 ) { |