]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables-nft: remove unused function argument
authorFlorian Westphal <fw@strlen.de>
Wed, 15 Mar 2023 07:33:39 +0000 (08:33 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 15 Mar 2023 07:34:02 +0000 (08:34 +0100)
Not used, all callers pass NULL.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft-arp.c
iptables/nft-cmd.c
iptables/nft-cmd.h
iptables/nft-ipv4.c
iptables/nft-ipv6.c
iptables/xtables-eb.c

index 210f43d2cefbe3fa4119ff71c8cf76dd19cbb095..8963573a72e9edc974b3c79e77845f6ba5d903f5 100644 (file)
@@ -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,
index f16ea0e6eaf8bfa31785471e852e08547563845c..7b2fc3a59578efe4beb90c7a9d192fd4d012e5ce 100644 (file)
@@ -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;
 
index c0f8463657cdde3c1baa567add907382399fbfa7..ae5908d8d596bdf2f3b95ef0b84ab6720f71d758 100644 (file)
@@ -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);
index dcc4a8edfc87ff66024217920da186e49e30eec4..fadadd2eb9ed65d8d03f0ecc113f736f5c4d4061 100644 (file)
@@ -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);
index e98921856c75d43ec1a6c4c7af8ff9ab3dc772be..85bb683f4862be20a206e7b44a23a40a4cb429b6 100644 (file)
@@ -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);
index 068dffd2310312c7f7c130f60245f8f8f09283fb..bf35f52b7585d5347bb4d75c15783947aa9cb477 100644 (file)
@@ -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);