diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-09-24 12:32:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-29 12:36:03 +0200 |
commit | 2b9010c4c5693f8921fd34ef24acec792608a017 (patch) | |
tree | f7a19445c717c9dacdeac6db0e6bd23f7981f1ff /src | |
parent | 90a0f8c443bbe33676aeff4e9782aa6b0e6c0894 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/rule.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |