diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-17 12:22:10 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-17 19:54:57 +0200 |
commit | cd76e3ce7f28c3b24f36992387b2e8351bed6746 (patch) | |
tree | d636f85b33a576c3a991c29e7ee514113ec53bbc | |
parent | ca12e455e98fb4247e0aa4c2d361195038debe65 (diff) |
src: remove useless parameter from cache_flush()
Command type is never used in cache_flush().
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | include/rule.h | 3 | ||||
-rw-r--r-- | src/evaluate.c | 2 | ||||
-rw-r--r-- | src/rule.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/include/rule.h b/include/rule.h index b41825d0..299485ff 100644 --- a/include/rule.h +++ b/include/rule.h @@ -639,8 +639,7 @@ extern int do_command(struct netlink_ctx *ctx, struct cmd *cmd); extern int cache_evaluate(struct nft_ctx *nft, struct list_head *cmds); extern int cache_update(struct nft_ctx *ctx, enum cmd_ops cmd, struct list_head *msgs); -extern void cache_flush(struct nft_ctx *ctx, enum cmd_ops cmd, - struct list_head *msgs); +extern void cache_flush(struct nft_ctx *ctx, struct list_head *msgs); extern void cache_release(struct nft_cache *cache); extern bool cache_is_complete(struct nft_cache *cache, enum cmd_ops cmd); diff --git a/src/evaluate.c b/src/evaluate.c index 70c7e597..73a4be33 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -3682,7 +3682,7 @@ static int cmd_evaluate_flush(struct eval_ctx *ctx, struct cmd *cmd) switch (cmd->obj) { case CMD_OBJ_RULESET: - cache_flush(ctx->nft, cmd->op, ctx->msgs); + cache_flush(ctx->nft, ctx->msgs); break; case CMD_OBJ_TABLE: /* Flushing a table does not empty the sets in the table nor remove @@ -297,7 +297,7 @@ static void __cache_flush(struct list_head *table_list) } } -void cache_flush(struct nft_ctx *nft, enum cmd_ops cmd, struct list_head *msgs) +void cache_flush(struct nft_ctx *nft, struct list_head *msgs) { struct netlink_ctx ctx = { .list = LIST_HEAD_INIT(ctx.list), |