naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0198-iproute-constify-rtattr_cmp.patch

049c96
From cdfa6872b71e63e4b2fe0ae6fd9b87be06d9ed53 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Wed, 20 Jul 2016 21:31:37 +0200
049c96
Subject: [PATCH] iproute: constify rtattr_cmp
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1348133
049c96
Upstream Status: iproute2.git commit 79f4a39365361
049c96
049c96
commit 79f4a39365361732622e114dbc86bc90ed32d25f
049c96
Author: Stephen Hemminger <shemming@brocade.com>
049c96
Date:   Fri Jul 15 11:34:45 2016 -0700
049c96
049c96
    iproute: constify rtattr_cmp
049c96
---
049c96
 ip/iproute.c | 2 +-
049c96
 1 file changed, 1 insertion(+), 1 deletion(-)
049c96
049c96
diff --git a/ip/iproute.c b/ip/iproute.c
049c96
index fca5802..94dacbb 100644
049c96
--- a/ip/iproute.c
049c96
+++ b/ip/iproute.c
049c96
@@ -1585,7 +1585,7 @@ static int iproute_get(int argc, char **argv)
049c96
 	exit(0);
049c96
 }
049c96
 
049c96
-static int rtattr_cmp(struct rtattr *rta1, struct rtattr *rta2)
049c96
+static int rtattr_cmp(const struct rtattr *rta1, const struct rtattr *rta2)
049c96
 {
049c96
 	if (!rta1 || !rta2 || rta1->rta_len != rta2->rta_len)
049c96
 		return 1;
049c96
-- 
049c96
1.8.3.1
049c96