57ce5340c3
Copy from network:utilities/iproute2 based on submit request 17722 from user adrianSuSE OBS-URL: https://build.opensuse.org/request/show/17722 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iproute2?expand=0&rev=20
25 lines
497 B
Diff
25 lines
497 B
Diff
--- lib/utils.c
|
|
+++ lib/utils.c 2007/07/12 09:05:56
|
|
@@ -33,6 +33,10 @@
|
|
|
|
#include "utils.h"
|
|
|
|
+#ifndef HZ
|
|
+#define HZ sysconf(_SC_CLK_TCK)
|
|
+#endif
|
|
+
|
|
int get_integer(int *val, const char *arg, int base)
|
|
{
|
|
long res;
|
|
@@ -330,8 +334,8 @@
|
|
|
|
int inet_addr_match(const inet_prefix *a, const inet_prefix *b, int bits)
|
|
{
|
|
- const __u32 *a1 = a->data;
|
|
- const __u32 *a2 = b->data;
|
|
+ const __u32 *a1 = (__u32*)a->data;
|
|
+ const __u32 *a2 = (__u32*)b->data;
|
|
int words = bits >> 0x05;
|
|
|
|
bits &= 0x1f;
|