naccyde / rpms / iproute

Forked from rpms/iproute 10 months ago
Clone

Blame SOURCES/0018-libnetlink-drop-unused-parameter-to-rtnl_dump_done.patch

be97f7
From 9346e08c2f9059decf889fb89f2859e7ed61f573 Mon Sep 17 00:00:00 2001
be97f7
From: Hangbin Liu <haliu@redhat.com>
be97f7
Date: Wed, 8 Nov 2017 14:39:08 +0800
be97f7
Subject: [PATCH] libnetlink: drop unused parameter to rtnl_dump_done
be97f7
be97f7
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1380803
be97f7
Upstream Status: iproute2.git commit 0efa625765b4
be97f7
be97f7
commit 0efa625765b4481e1e474526eb0feda747b720e5
be97f7
Author: Stephen Hemminger <stephen@networkplumber.org>
be97f7
Date:   Thu Aug 24 15:02:32 2017 -0700
be97f7
be97f7
    libnetlink: drop unused parameter to rtnl_dump_done
be97f7
be97f7
    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
be97f7
be97f7
Signed-off-by: Hangbin Liu <haliu@redhat.com>
be97f7
---
be97f7
 lib/libnetlink.c | 5 ++---
be97f7
 1 file changed, 2 insertions(+), 3 deletions(-)
be97f7
be97f7
diff --git a/lib/libnetlink.c b/lib/libnetlink.c
be97f7
index e91bd5a..b08518d 100644
be97f7
--- a/lib/libnetlink.c
be97f7
+++ b/lib/libnetlink.c
be97f7
@@ -261,8 +261,7 @@ int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n)
be97f7
 	return sendmsg(rth->fd, &msg, 0);
be97f7
 }
be97f7
 
be97f7
-static int rtnl_dump_done(const struct rtnl_handle *rth,
be97f7
-			  struct nlmsghdr *h)
be97f7
+static int rtnl_dump_done(struct nlmsghdr *h)
be97f7
 {
be97f7
 	int len = *(int *)NLMSG_DATA(h);
be97f7
 
be97f7
@@ -368,7 +367,7 @@ int rtnl_dump_filter_l(struct rtnl_handle *rth,
be97f7
 					dump_intr = 1;
be97f7
 
be97f7
 				if (h->nlmsg_type == NLMSG_DONE) {
be97f7
-					err = rtnl_dump_done(rth, h);
be97f7
+					err = rtnl_dump_done(h);
be97f7
 					if (err < 0)
be97f7
 						return -1;
be97f7
 
be97f7
-- 
be97f7
1.8.3.1
be97f7