aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-02-12 10:56:53 +0000
committerEric Andersen <andersen@codepoet.org>2003-02-12 10:56:53 +0000
commit496411b4891f8e7e3286ba36cd3aff5438b5f71d (patch)
tree1489131bf4c97f1ee67bf93e9fe5f570e4d588b1
parentc2843563f326e09249b3eff270ba6ffb8a19e90a (diff)
downloadbusybox-w32-496411b4891f8e7e3286ba36cd3aff5438b5f71d.tar.gz
busybox-w32-496411b4891f8e7e3286ba36cd3aff5438b5f71d.tar.bz2
busybox-w32-496411b4891f8e7e3286ba36cd3aff5438b5f71d.zip
Don't use HZ -- use sysconf(_SC_CLK_TCK)
-rw-r--r--networking/libiproute/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index 63084e15e..2c23cd294 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -16,6 +16,7 @@
16 16
17#include <stdlib.h> 17#include <stdlib.h>
18#include <string.h> 18#include <string.h>
19#include <unistd.h>
19#include <arpa/inet.h> 20#include <arpa/inet.h>
20 21
21#include "utils.h" 22#include "utils.h"
@@ -316,7 +317,7 @@ int __get_hz(void)
316 } 317 }
317 if (hz) 318 if (hz)
318 return hz; 319 return hz;
319 return HZ; 320 return sysconf(_SC_CLK_TCK);
320} 321}
321 322
322const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) 323const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen)