diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2013-07-16 22:07:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:36 +0100 |
commit | e127d223d01aaa0886c7f279110ac36651b9a057 (patch) | |
tree | 61f310f96f49baa2d060cf3afa44b7ca281540ca | |
parent | f6b30db46e5e3d32c76b186361853b5a5ecaf99f (diff) |
xtables: Remove useless parameter to nft_chain_list_find
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | iptables/nft.c | 4 | ||||
-rw-r--r-- | iptables/nft.h | 2 | ||||
-rw-r--r-- | iptables/xtables-restore.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 50341148..87db9be5 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -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, diff --git a/iptables/nft.h b/iptables/nft.h index 082260e5..a6476714 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -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); diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index e66f10cd..8469ba1a 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -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. |