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-w32-a3896511152cd5dcd64d2eb4aebcce65b29c6c0b.tar.gz busybox-w32-a3896511152cd5dcd64d2eb4aebcce65b29c6c0b.tar.bz2 busybox-w32-a3896511152cd5dcd64d2eb4aebcce65b29c6c0b.zip |
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) | |||
109 | 109 | ||
110 | safe_strncpy ( buffer, ctime ( &t ), 64); | 110 | safe_strncpy ( buffer, ctime ( &t ), 64); |
111 | if ( buffer [0] ) | 111 | if ( buffer [0] ) |
112 | buffer [bb_strlen ( buffer ) - 1] = 0; | 112 | buffer [strlen ( buffer ) - 1] = 0; |
113 | 113 | ||
114 | //printf ( "%s %.6f seconds %s\n", buffer, 0.0, utc ? "" : ( ptm-> tm_isdst ? tzname [1] : tzname [0] )); | 114 | //printf ( "%s %.6f seconds %s\n", buffer, 0.0, utc ? "" : ( ptm-> tm_isdst ? tzname [1] : tzname [0] )); |
115 | printf ( "%s %.6f seconds\n", buffer, 0.0 ); | 115 | printf ( "%s %.6f seconds\n", buffer, 0.0 ); |
@@ -157,7 +157,7 @@ static int check_utc(void) | |||
157 | RESERVE_CONFIG_BUFFER(buffer, 128); | 157 | RESERVE_CONFIG_BUFFER(buffer, 128); |
158 | 158 | ||
159 | while ( fgets ( buffer, sizeof( buffer ), f )) { | 159 | while ( fgets ( buffer, sizeof( buffer ), f )) { |
160 | int len = bb_strlen ( buffer ); | 160 | int len = strlen ( buffer ); |
161 | 161 | ||
162 | while ( len && isspace ( buffer [len - 1] )) | 162 | while ( len && isspace ( buffer [len - 1] )) |
163 | len--; | 163 | len--; |