Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
iproute2
iproute2-HZ.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iproute2-HZ.diff of Package iproute2
--- lib/utils.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) Index: iproute2-3.4.0/lib/utils.c =================================================================== --- iproute2-3.4.0.orig/lib/utils.c +++ iproute2-3.4.0/lib/utils.c @@ -30,6 +30,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; @@ -453,8 +457,8 @@ int matches(const char *cmd, const char 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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor