patch-2.3.25 linux/net/appletalk/aarp.c

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

diff -u --recursive --new-file v2.3.24/linux/net/appletalk/aarp.c linux/net/appletalk/aarp.c
@@ -1159,22 +1159,14 @@
 
 #ifdef CONFIG_PROC_FS
 
-static struct proc_dir_entry proc_aarp_entries=
-{
-	PROC_NET_AT_AARP, 4, "aarp",
-	S_IFREG | S_IRUGO, 1, 0, 0,
-	0, &proc_net_inode_operations,
-	aarp_get_info
-};
-
 void aarp_register_proc_fs(void)
 {
-	proc_net_register(&proc_aarp_entries);
+	proc_net_create("aarp", 0, aarp_get_info);
 }
 
 void aarp_unregister_proc_fs(void)
 {
-	proc_net_unregister(PROC_NET_AT_AARP);
+	proc_net_remove("aarp");
 }
 
 #endif

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