From 34e1e234a937242ebebbe225438b4567ca0c5bd2 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 19 Jul 2018 18:32:02 +0200 Subject: xtables: eliminate nft_ipv{4,6}_rule_find() Both functions just pass their parameters 1:1 to nft_ipv46_rule_find, so replace them by the latter after minor adjustment to match expected callback signature. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft-shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iptables/nft-shared.c') diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index 7abe158b..45e30867 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -932,9 +932,9 @@ void nft_ipv46_parse_target(struct xtables_target *t, void *data) } bool nft_ipv46_rule_find(struct nft_family_ops *ops, - struct nftnl_rule *r, struct iptables_command_state *cs) + struct nftnl_rule *r, void *data) { - struct iptables_command_state this = {}; + struct iptables_command_state *cs = data, this = {}; nft_rule_to_iptables_command_state(r, &this); -- cgit v1.2.3