[NETFILTER]: net/netfilter/nfnetlink*: make functions static
authorAdrian Bunk <bunk@stusta.de>
Tue, 6 Sep 2005 01:06:45 +0000 (18:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2005 01:06:45 +0000 (18:06 -0700)
This patch makes needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink.c
net/netfilter/nfnetlink_queue.c

index e089f17bb8032768dddb2fe8ffd400becd19fea4..49a3900e3d32b24d9ad91dc03340d62364d0ff25 100644 (file)
@@ -344,14 +344,14 @@ static void nfnetlink_rcv(struct sock *sk, int len)
        } while(nfnl && nfnl->sk_receive_queue.qlen);
 }
 
-void __exit nfnetlink_exit(void)
+static void __exit nfnetlink_exit(void)
 {
        printk("Removing netfilter NETLINK layer.\n");
        sock_release(nfnl->sk_socket);
        return;
 }
 
-int __init nfnetlink_init(void)
+static int __init nfnetlink_init(void)
 {
        printk("Netfilter messages via NETLINK v%s.\n", nfversion);
 
index e3a5285329af5535377f110c62aa004f4c07452a..052fc97dae985e9661a329c7f77e00adedabcd62 100644 (file)
@@ -76,7 +76,7 @@ typedef int (*nfqnl_cmpfn)(struct nfqnl_queue_entry *, unsigned long);
 
 static DEFINE_RWLOCK(instances_lock);
 
-u_int64_t htonll(u_int64_t in)
+static u_int64_t htonll(u_int64_t in)
 {
        u_int64_t out;
        int i;