patch-2.1.90 linux/net/802/tr.c

Next file: linux/net/appletalk/ddp.c
Previous file: linux/net/802/sysctl_net_802.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.89/linux/net/802/tr.c linux/net/802/tr.c
@@ -510,10 +510,18 @@
  *	Called during bootup.  We don't actually have to initialise
  *	too much for this.
  */
- 
+
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry tr_rif_proc = {
+	PROC_NET_TR_RIF, 6, "tr_rif",
+	S_IFREG | S_IRUGO, 1, 0, 0,
+	0, &proc_net_inode_operations,
+	rif_get_info
+};
+#endif
+
 __initfunc(void rif_init(struct net_proto *unused))
 {
-
 	rif_timer.expires  = RIF_TIMEOUT;
 	rif_timer.data     = 0L;
 	rif_timer.function = rif_check_expire;
@@ -521,11 +529,6 @@
 	add_timer(&rif_timer);
 
 #ifdef CONFIG_PROC_FS
-	proc_net_register(&(struct proc_dir_entry) {
-	  PROC_NET_TR_RIF, 6, "tr_rif",
-	    S_IFREG | S_IRUGO, 1, 0, 0,
-	    0, &proc_net_inode_operations,
-	    rif_get_info
-        });   
+	proc_net_register(&tr_rif_proc);
 #endif
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov