From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751311AbdDBJZv (ORCPT ); Sun, 2 Apr 2017 05:25:51 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35265 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdDBJZt (ORCPT ); Sun, 2 Apr 2017 05:25:49 -0400 From: Arushi Singhal To: pablo@netfilter.org Cc: kadlec@blackhole.kfki.hu, davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Arushi Singhal Subject: [PATCH] iptables: iptables: Remove exceptional & on function name Date: Sun, 2 Apr 2017 14:55:37 +0530 Message-Id: <20170402092537.22968-1-arushisinghal19971997@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove & from function pointers to conform to the style found elsewhere in the file. Done using the following semantic patch // @r@ identifier f; @@ f(...) { ... } @@ identifier r.f; @@ - &f + f // Signed-off-by: Arushi Singhal --- iptables/ip6tables-save.c | 2 +- iptables/iptables-save.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iptables/ip6tables-save.c b/iptables/ip6tables-save.c index 053413a..683b143 100644 --- a/iptables/ip6tables-save.c +++ b/iptables/ip6tables-save.c @@ -66,7 +66,7 @@ static int do_output(const char *tablename) const char *chain = NULL; if (!tablename) - return for_each_table(&do_output); + return for_each_table(do_output); h = ip6tc_init(tablename); if (h == NULL) { diff --git a/iptables/iptables-save.c b/iptables/iptables-save.c index e8ae9c6..2b45720 100644 --- a/iptables/iptables-save.c +++ b/iptables/iptables-save.c @@ -64,7 +64,7 @@ static int do_output(const char *tablename) const char *chain = NULL; if (!tablename) - return for_each_table(&do_output); + return for_each_table(do_output); h = iptc_init(tablename); if (h == NULL) { -- 2.11.0