diff options
author | Florian Westphal <fw@strlen.de> | 2023-03-15 08:33:39 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-03-15 08:34:02 +0100 |
commit | 8758e5577c4e40b0f3c7f32da28d385f6278a523 (patch) | |
tree | 035b65c1affdcc68f56b449b84e7489dac7a90b0 /iptables | |
parent | ad84e8870ef27bfc662edc0caedd74dac82e1c9d (diff) |
iptables-nft: remove unused function argument
Not used, all callers pass NULL.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/nft-arp.c | 2 | ||||
-rw-r--r-- | iptables/nft-cmd.c | 2 | ||||
-rw-r--r-- | iptables/nft-cmd.h | 2 | ||||
-rw-r--r-- | iptables/nft-ipv4.c | 2 | ||||
-rw-r--r-- | iptables/nft-ipv6.c | 2 | ||||
-rw-r--r-- | iptables/xtables-eb.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 210f43d2..8963573a 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -708,7 +708,7 @@ nft_arp_add_entry(struct nft_handle *h, cs->arp.arp.tgt.s_addr = args->d.addr.v4[j].s_addr; cs->arp.arp.tmsk.s_addr = args->d.mask.v4[j].s_addr; if (append) { - ret = nft_cmd_rule_append(h, chain, table, cs, NULL, + ret = nft_cmd_rule_append(h, chain, table, cs, verbose); } else { ret = nft_cmd_rule_insert(h, chain, table, cs, diff --git a/iptables/nft-cmd.c b/iptables/nft-cmd.c index f16ea0e6..7b2fc3a5 100644 --- a/iptables/nft-cmd.c +++ b/iptables/nft-cmd.c @@ -92,7 +92,7 @@ static void nft_cmd_rule_bridge(struct nft_handle *h, const struct nft_cmd *cmd) int nft_cmd_rule_append(struct nft_handle *h, const char *chain, const char *table, struct iptables_command_state *state, - void *ref, bool verbose) + bool verbose) { struct nft_cmd *cmd; diff --git a/iptables/nft-cmd.h b/iptables/nft-cmd.h index c0f84636..ae5908d8 100644 --- a/iptables/nft-cmd.h +++ b/iptables/nft-cmd.h @@ -37,7 +37,7 @@ void nft_cmd_free(struct nft_cmd *cmd); int nft_cmd_rule_append(struct nft_handle *h, const char *chain, const char *table, struct iptables_command_state *state, - void *ref, bool verbose); + bool verbose); int nft_cmd_rule_insert(struct nft_handle *h, const char *chain, const char *table, struct iptables_command_state *state, int rulenum, bool verbose); diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c index dcc4a8ed..fadadd2e 100644 --- a/iptables/nft-ipv4.c +++ b/iptables/nft-ipv4.c @@ -370,7 +370,7 @@ nft_ipv4_add_entry(struct nft_handle *h, if (append) { ret = nft_cmd_rule_append(h, chain, table, - cs, NULL, verbose); + cs, verbose); } else { ret = nft_cmd_rule_insert(h, chain, table, cs, rulenum, verbose); diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index e9892185..85bb683f 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -331,7 +331,7 @@ nft_ipv6_add_entry(struct nft_handle *h, &args->d.mask.v6[j], sizeof(struct in6_addr)); if (append) { ret = nft_cmd_rule_append(h, chain, table, - cs, NULL, verbose); + cs, verbose); } else { ret = nft_cmd_rule_insert(h, chain, table, cs, rulenum, verbose); diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 068dffd2..bf35f52b 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -99,7 +99,7 @@ append_entry(struct nft_handle *h, int ret = 1; if (append) - ret = nft_cmd_rule_append(h, chain, table, cs, NULL, verbose); + ret = nft_cmd_rule_append(h, chain, table, cs, verbose); else ret = nft_cmd_rule_insert(h, chain, table, cs, rule_nr, verbose); |