diff options
author | Rob Landley <rob@landley.net> | 2006-05-07 20:20:34 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-07 20:20:34 +0000 |
commit | a3896511152cd5dcd64d2eb4aebcce65b29c6c0b (patch) | |
tree | 0058e653d90a3d2a961fca16f7c7afd57cd63715 /util-linux | |
parent | f8a808426745ee5f4e5cc76ff1fb9c484c315195 (diff) | |
download | busybox-a3896511152cd5dcd64d2eb4aebcce65b29c6c0b.tar.gz |
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.
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/hwclock.c | 4 |
1 files changed, 2 insertions, 2 deletions
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--; |