aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2004-07-04 20:26:20 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-04 20:26:20 -0700
commitbc2a61f3701a973aab9d5d23b25ed83eda4a17b6 (patch)
tree17909c8b6acace2a10a51fbb17066f2fc61c9158 /net
parent488facdfec9118241e8c5564ed60b6975571dcea (diff)
downloadhistory-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.c2
-rw-r--r--net/netlink/af_netlink.c2
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)
{