netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH 1/3] rule: rename do_command_list_cleanup() to table_cleanup()
@ 2014-09-24 10:32 Arturo Borrero Gonzalez
  2014-09-24 10:32 ` [nft PATCH 2/3 v2] rule: factorize chain and table listing code Arturo Borrero Gonzalez
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Arturo Borrero Gonzalez @ 2014-09-24 10:32 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo, Arturo Borrero Gonzalez

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>
---
 src/rule.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/rule.c b/src/rule.c
index 2fe2520..ab533da 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;
 }
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-29 10:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24 10:32 [nft PATCH 1/3] rule: rename do_command_list_cleanup() to table_cleanup() Arturo Borrero Gonzalez
2014-09-24 10:32 ` [nft PATCH 2/3 v2] rule: factorize chain and table listing code Arturo Borrero Gonzalez
2014-09-24 10:32 ` [nft PATCH 3/3 v2] src: add list ruleset command Arturo Borrero Gonzalez
2014-09-24 14:54   ` Arturo Borrero Gonzalez
2014-09-25 17:21     ` Pablo Neira Ayuso
2014-09-29 10:38 ` [nft PATCH 1/3] rule: rename do_command_list_cleanup() to table_cleanup() Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).