patch-1.3.19 linux/net/appletalk/ddp.c

Next file: linux/net/ax25/Makefile
Previous file: linux/net/appletalk/aarp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.18/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -1864,12 +1864,23 @@
 	register_netdevice_notifier(&ddp_notifier);
 	aarp_proto_init();
 
-proc_net_register(&(struct proc_dir_entry)
-	{ PROC_NET_ATALK, 9, "appletalk", atalk_get_info });
-proc_net_register(&(struct proc_dir_entry)
-	{ PROC_NET_AT_ROUTE, 11,"atalk_route", atalk_rt_get_info });
-proc_net_register(&(struct proc_dir_entry)
-	{ PROC_NET_ATIF, 11,"atalk_iface", atalk_if_get_info });
+	proc_net_register(&(struct proc_dir_entry) {
+		PROC_NET_ATALK, 9, "appletalk",
+		S_IFREG | S_IRUGO, 1, 0, 0,
+		0, &proc_net_inode_operations,
+		atalk_get_info
+	});
+	proc_net_register(&(struct proc_dir_entry) {
+		PROC_NET_AT_ROUTE, 11,"atalk_route",
+		S_IFREG | S_IRUGO, 1, 0, 0,
+		atalk_rt_get_info
+	});
+	proc_net_register(&(struct proc_dir_entry) {
+		PROC_NET_ATIF, 11,"atalk_iface",
+		S_IFREG | S_IRUGO, 1, 0, 0,
+		0, &proc_net_inode_operations,
+		atalk_if_get_info
+	});
 
 	printk("Appletalk BETA 0.11 for Linux NET3.030\n");
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this