summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-07-19 18:31:56 +0200
committerFlorian Westphal <fw@strlen.de>2018-07-19 22:18:06 +0200
commit05894576bf78e8f3ec4e816ffc908a2dbced0350 (patch)
tree7a9156c86431a3cf94230f6046171fe066ca350c /iptables/nft-shared.h
parentd9c6a5d0977a6d8bbe772dbc31a2c4f58eec1708 (diff)
xtables: simplify struct nft_xt_ctx
Replace union 'state' by its sole member. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h4
1 files changed, 1 insertions, 3 deletions
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;