diff options
author | Ron Yorston <rmy@tigress.co.uk> | 2015-03-12 20:18:51 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-03-12 20:18:51 +0100 |
commit | 8ec1ff350c28ae691ee80a001c7786f4ad8abe47 (patch) | |
tree | 9093ee5c37732277de017f1d38602e93950dccb2 /util-linux/hwclock.c | |
parent | 53e9c51aded0af85c33d657143ed94c5151ba6f3 (diff) | |
download | busybox-w32-8ec1ff350c28ae691ee80a001c7786f4ad8abe47.tar.gz busybox-w32-8ec1ff350c28ae691ee80a001c7786f4ad8abe47.tar.bz2 busybox-w32-8ec1ff350c28ae691ee80a001c7786f4ad8abe47.zip |
Use chomp to remove newlines
function old new delta
unix_do_one 548 540 -8
process_timer_stats 508 500 -8
process_irq_counts 532 524 -8
lpd_main 839 831 -8
hwclock_main 502 494 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-50) Total: -40 bytes
Signed-off-by: Ron Yorston <rmy@tigress.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r-- | util-linux/hwclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 3f531555b..6c99977cf 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -69,7 +69,7 @@ static void show_clock(const char **pp_rtcname, int utc) | |||
69 | strftime(cp, sizeof(cp), "%c", ptm); | 69 | strftime(cp, sizeof(cp), "%c", ptm); |
70 | #else | 70 | #else |
71 | char *cp = ctime(&t); | 71 | char *cp = ctime(&t); |
72 | strchrnul(cp, '\n')[0] = '\0'; | 72 | chomp(cp); |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | #if !SHOW_HWCLOCK_DIFF | 75 | #if !SHOW_HWCLOCK_DIFF |