patch-2.1.3 linux/net/ipv4/ip_masq_app.c

Next file: linux/net/ipv4/ip_output.c
Previous file: linux/net/ipv4/ip_masq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.2/linux/net/ipv4/ip_masq_app.c linux/net/ipv4/ip_masq_app.c
@@ -473,6 +473,15 @@
 }
 
 
+#ifdef CONFIG_PROC_FS        
+static struct proc_dir_entry proc_net_ip_masq_app = {
+	PROC_NET_IP_MASQ_APP, 11, "ip_masq_app",
+	S_IFREG | S_IRUGO, 1, 0, 0,
+	0, &proc_net_inode_operations,
+	ip_masq_app_getinfo
+};
+#endif        
+
 /*
  *	Initialization routine
  */
@@ -482,12 +491,7 @@
         
         register_symtab (&ip_masq_app_syms);
 #ifdef CONFIG_PROC_FS        
-	proc_net_register(&(struct proc_dir_entry) {
-		PROC_NET_IP_MASQ_APP, 11, "ip_masq_app",
-		S_IFREG | S_IRUGO, 1, 0, 0,
-		0, &proc_net_inode_operations,
-		ip_masq_app_getinfo
- 	});
+	proc_net_register(&proc_net_ip_masq_app);
 #endif        
         return 0;
 }

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