summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2014-09-24 12:32:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-09-29 12:36:03 +0200
commit2b9010c4c5693f8921fd34ef24acec792608a017 (patch)
treef7a19445c717c9dacdeac6db0e6bd23f7981f1ff
parent90a0f8c443bbe33676aeff4e9782aa6b0e6c0894 (diff)
rule: rename do_command_list_cleanup() to table_cleanup()
Let's use a more generic name for this functions, since it has nothing to do with commands. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/rule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rule.c b/src/rule.c
index 2fe25206..ab533dac 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -733,7 +733,7 @@ static int do_command_export(struct netlink_ctx *ctx, struct cmd *cmd)
return 0;
}
-static void do_command_list_cleanup(struct table *table)
+static void table_cleanup(struct table *table)
{
struct chain *chain, *nchain;
struct set *set, *nset;
@@ -837,10 +837,10 @@ static int do_command_list(struct netlink_ctx *ctx, struct cmd *cmd)
}
table_print(table);
- do_command_list_cleanup(table);
+ table_cleanup(table);
return 0;
err:
- do_command_list_cleanup(table);
+ table_cleanup(table);
return -1;
}