diff options
author | Anton Blanchard <anton@samba.org> | 2004-07-04 20:26:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-04 20:26:20 -0700 |
commit | bc2a61f3701a973aab9d5d23b25ed83eda4a17b6 (patch) | |
tree | 17909c8b6acace2a10a51fbb17066f2fc61c9158 /net | |
parent | 488facdfec9118241e8c5564ed60b6975571dcea (diff) | |
download | history-bc2a61f3701a973aab9d5d23b25ed83eda4a17b6.tar.gz |
[PATCH] gcc 3.5 fixes
gcc 3.5 is warning about static vs non static function declarations. The
following patch removes function prototypes in .h files where possible and
changes prototypes to be static elsewhere.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/xfrm4_state.c | 2 | ||||
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/xfrm4_state.c b/net/ipv4/xfrm4_state.c index ed6dbef78eb5d7..783f63cd8a98a0 100644 --- a/net/ipv4/xfrm4_state.c +++ b/net/ipv4/xfrm4_state.c @@ -11,7 +11,7 @@ #include <linux/pfkeyv2.h> #include <linux/ipsec.h> -extern struct xfrm_state_afinfo xfrm4_state_afinfo; +static struct xfrm_state_afinfo xfrm4_state_afinfo; static void __xfrm4_init_tempsel(struct xfrm_state *x, struct flowi *fl, diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 04fb0453821a1f..6bf5ad83d7f1b6 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -176,7 +176,7 @@ found: return sk; } -extern struct proto_ops netlink_ops; +static struct proto_ops netlink_ops; static int netlink_insert(struct sock *sk, u32 pid) { |