From 1bf73c4227459393029ab7b124ba74fe853d9413 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 19 Jul 2018 18:31:58 +0200 Subject: 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 Signed-off-by: Florian Westphal --- iptables/nft.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'iptables/nft.h') 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); -- cgit v1.2.3