]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
rule: rename do_command_list_cleanup() to table_cleanup()
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Wed, 24 Sep 2014 10:32:18 +0000 (12:32 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 Sep 2014 10:36:03 +0000 (12:36 +0200)
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>
src/rule.c

index 2fe25206111a995e2c06c1ed60406a07e75d3017..ab533dac9e31e1aa5e5be75576e7ce12633063f2 100644 (file)
@@ -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;
 }