aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/utils.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-31 18:58:32 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-31 18:58:32 +0000
commit13463af29f1fd904cc0ea5e0bd0acdabd8431e53 (patch)
tree9ec9a96df5df0ee33bb5e31f89f9407d8cf48396 /networking/libiproute/utils.c
parent98ee06d3d46aa7f89c204681c7075b53300a6a6e (diff)
downloadbusybox-13463af29f1fd904cc0ea5e0bd0acdabd8431e53.tar.gz
remove commented out #includes etc
move get_hz to the only caller
Diffstat (limited to 'networking/libiproute/utils.c')
-rw-r--r--networking/libiproute/utils.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index aa60ffd01..7e74e1c4b 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -294,26 +294,6 @@ int inet_addr_match(inet_prefix * a, inet_prefix * b, int bits)
return 0;
}
-int __iproute2_hz_internal;
-
-int __get_hz(void)
-{
- int hz = 0;
- FILE *fp = fopen("/proc/net/psched", "r");
-
- if (fp) {
- unsigned nom, denom;
-
- if (fscanf(fp, "%*08x%*08x%08x%08x", &nom, &denom) == 2)
- if (nom == 1000000)
- hz = denom;
- fclose(fp);
- }
- if (hz)
- return hz;
- return sysconf(_SC_CLK_TCK);
-}
-
const char *rt_addr_n2a(int af, int ATTRIBUTE_UNUSED len,
void *addr, char *buf, int buflen)
{