浏览代码

[IPV4] fib_rules.c: make struct fib_rules static again

struct fib_rules became global for no good reason.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Adrian Bunk 19 年之前
父节点
当前提交
d15150f755
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv4/fib_rules.c

+ 1 - 1
net/ipv4/fib_rules.c

@@ -100,7 +100,7 @@ static struct fib_rule local_rule = {
 	.r_action =	RTN_UNICAST,
 };
 
-struct hlist_head fib_rules;
+static struct hlist_head fib_rules;
 
 /* writer func called from netlink -- rtnl_sem hold*/