From 5d2e409ef8224dc32fde59702e8ec90b231441ed Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sun, 22 Jun 2014 14:01:13 +0200 Subject: 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 Signed-off-by: Denys Vlasenko --- networking/libiproute/iproute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/libiproute') diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index f8a67d9..ec4d8ba 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c @@ -73,7 +73,7 @@ static unsigned get_hz(void) fclose(fp); } if (!hz_internal) - hz_internal = sysconf(_SC_CLK_TCK); + hz_internal = bb_clk_tck(); return hz_internal; } -- cgit v1.1