forked from pool/collectd
32073e0ab5
Accepted submit request 59758 from user schubi2 OBS-URL: https://build.opensuse.org/request/show/59758 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/collectd?expand=0&rev=1
25 lines
554 B
Diff
25 lines
554 B
Diff
--- lib/utils.c.orig 2008-04-17 19:12:54.000000000 +0200
|
|
+++ lib/utils.c 2008-05-08 00:20:27.000000000 +0200
|
|
@@ -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;
|
|
@@ -430,8 +434,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;
|