diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:31:58 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 23:05:56 +0200 |
commit | 1bf73c4227459393029ab7b124ba74fe853d9413 (patch) | |
tree | 83762e0463a355ff8ef30ad1b97a528e5fa564c7 /iptables/nft.h | |
parent | 1866625f0befbc04673017692813f48d084004ff (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.h | 3 |
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); |