From 2b9010c4c5693f8921fd34ef24acec792608a017 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Wed, 24 Sep 2014 12:32:18 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3