patch-2.3.25 linux/ipc/msg.c

Next file: linux/ipc/sem.c
Previous file: linux/include/linux/wrapper.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/ipc/msg.c linux/ipc/msg.c
@@ -97,17 +97,13 @@
 void __init msg_init (void)
 {
 	int id;
-#ifdef CONFIG_PROC_FS
-	struct proc_dir_entry *ent;
-#endif
 
 	for (id = 0; id < MSGMNI; id++) {
 		msg_que[id].lock = SPIN_LOCK_UNLOCKED;
 		msg_que[id].q = NULL;
 	}
 #ifdef CONFIG_PROC_FS
-	ent = create_proc_entry("sysvipc/msg", 0, 0);
-	ent->read_proc = sysvipc_msg_read_proc;
+	create_proc_read_entry("sysvipc/msg", 0, 0, sysvipc_msg_read_proc, NULL);
 #endif
 }
 

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