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. --- util-linux/hwclock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util-linux') diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 5992d8420..2fe57b2fc 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c @@ -109,7 +109,7 @@ static int show_clock(int utc) safe_strncpy ( buffer, ctime ( &t ), 64); if ( buffer [0] ) - buffer [bb_strlen ( buffer ) - 1] = 0; + buffer [strlen ( buffer ) - 1] = 0; //printf ( "%s %.6f seconds %s\n", buffer, 0.0, utc ? "" : ( ptm-> tm_isdst ? tzname [1] : tzname [0] )); printf ( "%s %.6f seconds\n", buffer, 0.0 ); @@ -157,7 +157,7 @@ static int check_utc(void) RESERVE_CONFIG_BUFFER(buffer, 128); while ( fgets ( buffer, sizeof( buffer ), f )) { - int len = bb_strlen ( buffer ); + int len = strlen ( buffer ); while ( len && isspace ( buffer [len - 1] )) len--; -- cgit v1.2.3