]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables: Remove useless parameter to nft_chain_list_find
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 16 Jul 2013 20:07:22 +0000 (22:07 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:36 +0000 (23:50 +0100)
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c
iptables/nft.h
iptables/xtables-restore.c

index 50341148b8f07f5ce7e2bcafddfc002c48129078..87db9be5246fde22285d79f942476ca87141a26e 100644 (file)
@@ -1434,7 +1434,7 @@ err:
 }
 
 struct nft_chain *
-nft_chain_list_find(struct nft_handle *h, struct nft_chain_list *list,
+nft_chain_list_find(struct nft_chain_list *list,
                    const char *table, const char *chain)
 {
        struct nft_chain_list_iter *iter;
@@ -1475,7 +1475,7 @@ nft_chain_find(struct nft_handle *h, const char *table, const char *chain)
        if (list == NULL)
                return NULL;
 
-       return nft_chain_list_find(h, list, table, chain);
+       return nft_chain_list_find(list, table, chain);
 }
 
 int nft_chain_user_rename(struct nft_handle *h,const char *chain,
index 082260e52872971a59e67d23964a5a4a0cf2fce1..a64767142fbbda54f5dd57068b9e378d61b40697 100644 (file)
@@ -37,7 +37,7 @@ struct nft_chain;
 int nft_chain_add(struct nft_handle *h, const struct nft_chain *c);
 int nft_chain_set(struct nft_handle *h, const char *table, const char *chain, const char *policy, const struct xt_counters *counters);
 struct nft_chain_list *nft_chain_dump(struct nft_handle *h);
-struct nft_chain *nft_chain_list_find(struct nft_handle *h, struct nft_chain_list *list, const char *table, const char *chain);
+struct nft_chain *nft_chain_list_find(struct nft_chain_list *list, const char *table, const char *chain);
 int nft_chain_save(struct nft_handle *h, struct nft_chain_list *list, const char *table);
 int nft_chain_user_add(struct nft_handle *h, const char *chain, const char *table);
 int nft_chain_user_del(struct nft_handle *h, const char *chain, const char *table);
index e66f10cdf5c9226428ecdaff40c62f4963e94995..8469ba1ab6434b5ea0f9c0a846070d58479dcb16 100644 (file)
@@ -326,7 +326,7 @@ xtables_restore_main(int argc, char *argv[])
                                exit(1);
                        }
 
-                       chain_obj = nft_chain_list_find(&h, chain_list,
+                       chain_obj = nft_chain_list_find(chain_list,
                                                        curtable, chain);
                        /* This chain has been found, delete from list. Later
                         * on, unvisited chains will be purged out.