patch-2.1.3 linux/net/ipv4/rarp.c
Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/ipmr.c
Back to the patch index
Back to the overall index
-  Lines: 24
-  Date:
Wed Oct  9 20:11:11 1996
-  Orig file: 
v2.1.2/linux/net/ipv4/rarp.c
-  Orig date: 
Thu Aug  1 15:43:04 1996
diff -u --recursive --new-file v2.1.2/linux/net/ipv4/rarp.c linux/net/ipv4/rarp.c
@@ -544,15 +544,17 @@
 	return len;
 }
 
+struct proc_dir_entry proc_net_rarp = {
+	PROC_NET_RARP, 4, "rarp",
+	S_IFREG | S_IRUGO, 1, 0, 0,
+	0, &proc_net_inode_operations,
+	rarp_get_info
+};
+
 void
 rarp_init(void)
 {
-	proc_net_register(&(struct proc_dir_entry) {
-		PROC_NET_RARP, 4, "rarp",
-		S_IFREG | S_IRUGO, 1, 0, 0,
-		0, &proc_net_inode_operations,
-		rarp_get_info
-	});
+	proc_net_register(&proc_net_rarp);
 	rarp_ioctl_hook = rarp_ioctl;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov