Skip to contentSkip to conversation

make nf_ct_path[] static

PATCH In review Adrian Bunk 3 participants 3 messages Jan 30, 2008 – Jan 31, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make nf_ct_path[] static

This patch makes the needlessly global nf_ct_path[] static.

---
6396fbcebe3eb61f7e6eb1a671920a515912b005

net/netfilter/nf_conntrack_standalone.c +1 -1
index 696074a..5bd38a6 100644
@@ -380,7 +380,7 @@ static ctl_table nf_ct_netfilter_table[] = {
 	{ .ctl_name = 0 }
 };
 
-struct ctl_path nf_ct_path[] = {
+static struct ctl_path nf_ct_path[] = {
 	{ .procname = "net", .ctl_name = CTL_NET, },
 	{ }
 };
#1 lore raw
Quoted 1 line · Adrian Bunk

This patch makes the needlessly global nf_ct_path[] static.

I already have this queued.

Acked-by on v1 1/1
#2 lore raw
In reply to Adrian Bunk
Quoted 3 lines · Adrian Bunk

This patch makes the needlessly global nf_ct_path[] static.

Thanks, Adrian!

Quoted 17 lines

---
6396fbcebe3eb61f7e6eb1a671920a515912b005

net/netfilter/nf_conntrack_standalone.c +1 -1
index 696074a..5bd38a6 100644
@@ -380,7 +380,7 @@ static ctl_table nf_ct_netfilter_table[] = {
 	{ .ctl_name = 0 }
 };
 
-struct ctl_path nf_ct_path[] = {
+static struct ctl_path nf_ct_path[] = {
 	{ .procname = "net", .ctl_name = CTL_NET, },
 	{ }
 };