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-arp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iptables/nft-arp.c') diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 7b70ef22..06d86647 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -372,7 +372,7 @@ void nft_rule_to_arptables_command_state(const struct nftnl_rule *r, struct nftnl_expr *expr; int family = nftnl_rule_get_u32(r, NFTNL_RULE_FAMILY); struct nft_xt_ctx ctx = { - .state.cs = cs, + .cs = cs, .family = family, }; @@ -387,7 +387,7 @@ void nft_rule_to_arptables_command_state(const struct nftnl_rule *r, nftnl_expr_get_str(expr, NFTNL_EXPR_NAME); if (strcmp(name, "counter") == 0) - nft_parse_counter(expr, &ctx.state.cs->arp.counters); + nft_parse_counter(expr, &ctx.cs->arp.counters); else if (strcmp(name, "payload") == 0) nft_parse_payload(&ctx, expr); else if (strcmp(name, "meta") == 0) -- cgit v1.2.3