libnetlink: drop unused parameter to rtnl_dump_done
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
8f478ec2b3
commit
0efa625765
|
|
@ -354,8 +354,7 @@ int rtnl_dump_request_n(struct rtnl_handle *rth, struct nlmsghdr *n)
|
||||||
return sendmsg(rth->fd, &msg, 0);
|
return sendmsg(rth->fd, &msg, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtnl_dump_done(const struct rtnl_handle *rth,
|
static int rtnl_dump_done(struct nlmsghdr *h)
|
||||||
struct nlmsghdr *h)
|
|
||||||
{
|
{
|
||||||
int len = *(int *)NLMSG_DATA(h);
|
int len = *(int *)NLMSG_DATA(h);
|
||||||
|
|
||||||
|
|
@ -462,7 +461,7 @@ int rtnl_dump_filter_l(struct rtnl_handle *rth,
|
||||||
dump_intr = 1;
|
dump_intr = 1;
|
||||||
|
|
||||||
if (h->nlmsg_type == NLMSG_DONE) {
|
if (h->nlmsg_type == NLMSG_DONE) {
|
||||||
err = rtnl_dump_done(rth, h);
|
err = rtnl_dump_done(h);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue