summaryrefslogtreecommitdiffstats
path: root/iptables/nft.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-07-19 18:31:58 +0200
committerFlorian Westphal <fw@strlen.de>2018-07-19 23:05:56 +0200
commit1bf73c4227459393029ab7b124ba74fe853d9413 (patch)
tree83762e0463a355ff8ef30ad1b97a528e5fa564c7 /iptables/nft.h
parent1866625f0befbc04673017692813f48d084004ff (diff)
xtables: Use new callbacks in nft_rule_print_save()
This relieves callers from having to prepare iptables_command_state, which often happens just for the sake of passing it to this function. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r--iptables/nft.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/iptables/nft.h b/iptables/nft.h
index ffae84f2..a3f5c202 100644
--- a/iptables/nft.h
+++ b/iptables/nft.h
@@ -119,8 +119,7 @@ enum nft_rule_print {
NFT_RULE_DEL,
};
-void nft_rule_print_save(const void *data,
- struct nftnl_rule *r, enum nft_rule_print type,
+void nft_rule_print_save(const struct nftnl_rule *r, enum nft_rule_print type,
unsigned int format);
uint32_t nft_invflags2cmp(uint32_t invflags, uint32_t flag);