summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorBartosz Golaszewski2014-06-22 14:01:13 +0200
committerDenys Vlasenko2014-06-22 14:01:13 +0200
commit5d2e409ef8224dc32fde59702e8ec90b231441ed (patch)
tree1d73d4a99a495ba57bc5be8878dce3cefbb99e9f /shell
parentf92f1d0181853b989f9377debb56902e3e21c9a8 (diff)
downloadbusybox-5d2e409ef8224dc32fde59702e8ec90b231441ed.zip
busybox-5d2e409ef8224dc32fde59702e8ec90b231441ed.tar.gz
libbb: use a wrapper around sysconf(_SC_CLK_TCK) to save a few bytes
function old new delta bb_sc_clk_tck - 10 +10 timescmd 118 113 -5 print_route 1763 1758 -5 mpstat_main 1288 1283 -5 iostat_main 1947 1942 -5 INET_setroute 879 871 -8 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/5 up/down: 10/-28) Total: -18 bytes Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index cabeb40..dc7a9bf 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -12759,7 +12759,7 @@ timescmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
const unsigned char *p;
struct tms buf;
- clk_tck = sysconf(_SC_CLK_TCK);
+ clk_tck = bb_clk_tck();
times(&buf);
p = timescmd_str;