From patchwork Wed Sep 24 10:32:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arturo Borrero X-Patchwork-Id: 392863 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D0A3A14016A for ; Wed, 24 Sep 2014 20:33:11 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751568AbaIXKdK (ORCPT ); Wed, 24 Sep 2014 06:33:10 -0400 Received: from smtp3.cica.es ([150.214.5.190]:49253 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750940AbaIXKdJ (ORCPT ); Wed, 24 Sep 2014 06:33:09 -0400 Received: from localhost (unknown [127.0.0.1]) by smtp.cica.es (Postfix) with ESMTP id 8873551EF67; Wed, 24 Sep 2014 10:33:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at cica.es Received: from smtp.cica.es ([127.0.0.1]) by localhost (mail.cica.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IvY5RvTAnOrG; Wed, 24 Sep 2014 12:33:01 +0200 (CEST) Received: from nfdev.cica.es (nfdev.cica.es [150.214.8.220]) by smtp.cica.es (Postfix) with ESMTP id 3DA1751EEE7; Wed, 24 Sep 2014 12:32:21 +0200 (CEST) From: Arturo Borrero Gonzalez To: netfilter-devel@vger.kernel.org Cc: pablo@netfilter.org, Arturo Borrero Gonzalez Subject: [nft PATCH 1/3] rule: rename do_command_list_cleanup() to table_cleanup() Date: Wed, 24 Sep 2014 12:32:18 +0200 Message-Id: <1411554740-16660-1-git-send-email-arturo.borrero.glez@gmail.com> X-Mailer: git-send-email 1.7.10.4 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Let's use a more generic name for this functions, since it has nothing to do with commands. Signed-off-by: Arturo Borrero Gonzalez --- 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; }