diff options
author | Rob Landley <rob@landley.net> | 2006-01-06 20:59:09 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-01-06 20:59:09 +0000 |
commit | 84cb76733f0e5853a6c7c2f64b1c168e61dfd933 (patch) | |
tree | e9315133e3d21ea032e5e676ddb3f39e18be5605 /loginutils/login.c | |
parent | 251161f75c0895a1138f87bd80d9bcc38e567444 (diff) | |
download | busybox-w32-84cb76733f0e5853a6c7c2f64b1c168e61dfd933.tar.gz busybox-w32-84cb76733f0e5853a6c7c2f64b1c168e61dfd933.tar.bz2 busybox-w32-84cb76733f0e5853a6c7c2f64b1c168e61dfd933.zip |
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 6632a7665..21e807615 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -198,17 +198,7 @@ auth_ok: | |||
198 | if ( !failed) | 198 | if ( !failed) |
199 | break; | 199 | break; |
200 | 200 | ||
201 | { // delay next try | 201 | bb_do_delay(FAIL_DELAY); |
202 | time_t start, now; | ||
203 | |||
204 | time ( &start ); | ||
205 | now = start; | ||
206 | while ( difftime ( now, start ) < FAIL_DELAY) { | ||
207 | sleep ( FAIL_DELAY ); | ||
208 | time ( &now ); | ||
209 | } | ||
210 | } | ||
211 | |||
212 | puts("Login incorrect"); | 202 | puts("Login incorrect"); |
213 | username[0] = 0; | 203 | username[0] = 0; |
214 | if ( ++count == 3 ) { | 204 | if ( ++count == 3 ) { |