forked from pool/iproute2
Jan Engelhardt
31c2334e96
- Update to release 6.3: * New release of iproute2 corresponding to the 6.3 kernel. No large feature improvements only incremental improvements to the bridge mdb support, mostly just bug fixes. - Rebase patches. OBS-URL: https://build.opensuse.org/request/show/1084545 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iproute2?expand=0&rev=240
25 lines
714 B
Diff
25 lines
714 B
Diff
From: Michal Kubecek <mkubecek@suse.cz>
|
|
Date: Fri, 15 Jan 2016 07:31:30 +0100
|
|
Subject: add explicit typecast to avoid gcc warning
|
|
Patch-mainline: No
|
|
|
|
---
|
|
lib/utils.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
Index: iproute2-6.3.0/lib/utils.c
|
|
===================================================================
|
|
--- iproute2-6.3.0.orig/lib/utils.c
|
|
+++ iproute2-6.3.0/lib/utils.c
|
|
@@ -881,8 +881,8 @@ bool matches(const char *prefix, const c
|
|
|
|
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;
|