diff mbox

[nft,1/3] rule: rename do_command_list_cleanup() to table_cleanup()

Message ID 1411554740-16660-1-git-send-email-arturo.borrero.glez@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Arturo Borrero Sept. 24, 2014, 10:32 a.m. UTC
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(-)

Comments

Pablo Neira Ayuso Sept. 29, 2014, 10:38 a.m. UTC | #1
On Wed, Sep 24, 2014 at 12:32:18PM +0200, Arturo Borrero Gonzalez wrote:
> Let's use a more generic name for this functions, since it has nothing to do
> with commands.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;
 }