* [PATCH] iptables: iptables: Remove exceptional & on function name
@ 2017-04-02 9:25 Arushi Singhal
0 siblings, 0 replies; only message in thread
From: Arushi Singhal @ 2017-04-02 9:25 UTC (permalink / raw)
To: pablo
Cc: kadlec, davem, kuznet, jmorris, yoshfuji, kaber, netfilter-devel,
coreteam, netdev, linux-kernel, Arushi Singhal
Remove & from function pointers to conform to the style found elsewhere
in the file. Done using the following semantic patch
// <smpl>
@r@
identifier f;
@@
f(...) { ... }
@@
identifier r.f;
@@
- &f
+ f
// </smpl>
Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-02 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-02 9:25 [PATCH] iptables: iptables: Remove exceptional & on function name Arushi Singhal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®