Skip to contentSkip to conversation

net/ipv6/sit.c: make 2 functions static

PATCH Applied Adrian Bunk 2 participants 2 messages Nov 17, 2006 – Nov 21, 2006

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

PATCH 1/1 net/ipv6/sit.c: make 2 functions static

This patch makes two needlessly global functions static.

---

 include/net/ipip.h |    4 ----
 net/ipv6/sit.c     |    4 ++--
 2 files changed, 2 insertions(+), 6 deletions(-)
include/net/ipip.h renamed from include/net/ipip.h.old +0 -4
@@ -44,8 +44,4 @@
 	}								\
 } while (0)
 
-
-extern int	sit_init(void);
-extern void	sit_cleanup(void);
-
 #endif
net/ipv6/sit.c renamed from net/ipv6/sit.c.old +2 -2
@@ -809,7 +809,7 @@
 	}
 }
 
-void __exit sit_cleanup(void)
+static void __exit sit_cleanup(void)
 {
 	inet_del_protocol(&sit_protocol, IPPROTO_IPV6);
 
@@ -819,7 +819,7 @@
 	rtnl_unlock();
 }
 
-int __init sit_init(void)
+static int __init sit_init(void)
 {
 	int err;