diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 18:58:32 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 18:58:32 +0000 |
commit | 13463af29f1fd904cc0ea5e0bd0acdabd8431e53 (patch) | |
tree | 9ec9a96df5df0ee33bb5e31f89f9407d8cf48396 /networking/libiproute/utils.h | |
parent | 98ee06d3d46aa7f89c204681c7075b53300a6a6e (diff) | |
download | busybox-w32-13463af29f1fd904cc0ea5e0bd0acdabd8431e53.tar.gz busybox-w32-13463af29f1fd904cc0ea5e0bd0acdabd8431e53.tar.bz2 busybox-w32-13463af29f1fd904cc0ea5e0bd0acdabd8431e53.zip |
remove commented out #includes etc
move get_hz to the only caller
Diffstat (limited to '')
-rw-r--r-- | networking/libiproute/utils.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index 3ecbb3abd..c8ac63197 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h | |||
@@ -3,8 +3,6 @@ | |||
3 | #define __UTILS_H__ 1 | 3 | #define __UTILS_H__ 1 |
4 | 4 | ||
5 | #include "libbb.h" | 5 | #include "libbb.h" |
6 | //#include <asm/types.h> | ||
7 | //#include <resolv.h> | ||
8 | 6 | ||
9 | #include "libnetlink.h" | 7 | #include "libnetlink.h" |
10 | #include "ll_map.h" | 8 | #include "ll_map.h" |
@@ -90,14 +88,4 @@ int dnet_pton(int af, const char *src, void *addr); | |||
90 | const char *ipx_ntop(int af, const void *addr, char *str, size_t len); | 88 | const char *ipx_ntop(int af, const void *addr, char *str, size_t len); |
91 | int ipx_pton(int af, const char *src, void *addr); | 89 | int ipx_pton(int af, const char *src, void *addr); |
92 | 90 | ||
93 | extern int __iproute2_hz_internal; | ||
94 | extern int __get_hz(void); | ||
95 | |||
96 | static inline int get_hz(void) | ||
97 | { | ||
98 | if (__iproute2_hz_internal == 0) | ||
99 | __iproute2_hz_internal = __get_hz(); | ||
100 | return __iproute2_hz_internal; | ||
101 | } | ||
102 | |||
103 | #endif /* __UTILS_H__ */ | 91 | #endif /* __UTILS_H__ */ |