From 05894576bf78e8f3ec4e816ffc908a2dbced0350 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 19 Jul 2018 18:31:56 +0200 Subject: xtables: simplify struct nft_xt_ctx Replace union 'state' by its sole member. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft-shared.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'iptables/nft-shared.h') diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 18927a29..2ad1ae6b 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -47,9 +47,7 @@ enum { }; struct nft_xt_ctx { - union { - struct iptables_command_state *cs; - } state; + struct iptables_command_state *cs; struct nftnl_expr_iter *iter; int family; uint32_t flags; -- cgit v1.2.3