patch-2.3.25 linux/net/core/profile.c

Next file: linux/net/decnet/af_decnet.c
Previous file: linux/net/core/dev_mcast.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/net/core/profile.c linux/net/core/profile.c
@@ -265,10 +265,7 @@
 	int i;
 
 #ifdef CONFIG_PROC_FS
-	struct proc_dir_entry *ent;
-
-	ent = create_proc_entry("net/profile", 0, 0);
-	ent->read_proc = profile_read_proc;
+	create_proc_read_entry("net/profile", 0, 0, profile_read_proc, NULL);
 #endif
 
 	register_netdevice(&whitehole_dev);

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