patch-2.3.25 linux/net/ipv6/mcast.c

Next file: linux/net/ipv6/ndisc.c
Previous file: linux/net/ipv6/ip6_flowlabel.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/net/ipv6/mcast.c linux/net/ipv6/mcast.c
@@ -707,9 +707,6 @@
 
 int __init igmp6_init(struct net_proto_family *ops)
 {
-#ifdef CONFIG_PROC_FS
-	struct proc_dir_entry *ent;
-#endif
 	struct sock *sk;
 	int err;
 
@@ -738,8 +735,7 @@
 
 	sk->net_pinfo.af_inet6.hop_limit = 1;
 #ifdef CONFIG_PROC_FS
-	ent = create_proc_entry("net/igmp6", 0, 0);
-	ent->read_proc = igmp6_read_proc;
+	create_proc_read_entry("net/igmp6", 0, 0, igmp6_read_proc, NULL);
 #endif
 
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)