From a3896511152cd5dcd64d2eb4aebcce65b29c6c0b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 7 May 2006 20:20:34 +0000 Subject: Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytes as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code. --- loginutils/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loginutils') diff --git a/loginutils/login.c b/loginutils/login.c index 277fc98..88123c0 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -338,7 +338,7 @@ static int check_tty ( const char *tty ) if (( fp = fopen ( bb_path_securetty_file, "r" ))) { while ( fgets ( buf, sizeof( buf ) - 1, fp )) { - for ( i = bb_strlen( buf ) - 1; i >= 0; --i ) { + for ( i = strlen( buf ) - 1; i >= 0; --i ) { if ( !isspace ( buf[i] )) break; } -- cgit v1.1