diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 01:05:12 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 01:11:50 +0200 |
commit | d163ba4dbf1446adfb9b727c305e8267f4f8013f (patch) | |
tree | a9a1648932940ae4fcea35b161e82c55a69b8179 /src/netlink.c | |
parent | b7c658fff3a41fa58fcbcd229e1b1f0f4be03b3c (diff) |
netlink: don't pass location to netlink_list_*() function
Not needed anymore.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/netlink.c b/src/netlink.c index 8e345536..9e11af5d 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -550,8 +550,7 @@ static int list_rule_cb(struct nftnl_rule *nlr, void *arg) return 0; } -static int netlink_list_rules(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc) +static int netlink_list_rules(struct netlink_ctx *ctx, const struct handle *h) { struct nftnl_rule_list *rule_cache; @@ -707,8 +706,7 @@ static int list_chain_cb(struct nftnl_chain *nlc, void *arg) return 0; } -int netlink_list_chains(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc) +int netlink_list_chains(struct netlink_ctx *ctx, const struct handle *h) { struct nftnl_chain_list *chain_cache; @@ -787,8 +785,7 @@ static int list_table_cb(struct nftnl_table *nlt, void *arg) return 0; } -int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc) +int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h) { struct nftnl_table_list *table_cache; @@ -806,10 +803,9 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h, return 0; } -int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc) +int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h) { - return netlink_list_rules(ctx, h, loc); + return netlink_list_rules(ctx, h); } int netlink_flush_table(struct netlink_ctx *ctx, const struct cmd *cmd) @@ -1061,8 +1057,7 @@ static int list_set_cb(struct nftnl_set *nls, void *arg) return 0; } -int netlink_list_sets(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc) +int netlink_list_sets(struct netlink_ctx *ctx, const struct handle *h) { struct nftnl_set_list *set_cache; int err; @@ -1555,8 +1550,7 @@ static int list_obj_cb(struct nftnl_obj *nls, void *arg) return 0; } -int netlink_list_objs(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc) +int netlink_list_objs(struct netlink_ctx *ctx, const struct handle *h) { struct nftnl_obj_list *obj_cache; int err; @@ -1643,8 +1637,7 @@ static int list_flowtable_cb(struct nftnl_flowtable *nls, void *arg) return 0; } -int netlink_list_flowtables(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc) +int netlink_list_flowtables(struct netlink_ctx *ctx, const struct handle *h) { struct nftnl_flowtable_list *flowtable_cache; int err; |