patch-2.3.43 linux/fs/proc/generic.c

Next file: linux/fs/proc/kcore.c
Previous file: linux/fs/proc/base.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/fs/proc/generic.c linux/fs/proc/generic.c
@@ -32,9 +32,9 @@
 }
 
 static struct file_operations proc_file_operations = {
-    proc_file_lseek,	/* lseek   */
-    proc_file_read,	/* read	   */
-    proc_file_write,	/* write   */
+	llseek:		proc_file_lseek,
+	read:		proc_file_read,
+	write:		proc_file_write,
 };
 
 static struct inode_operations proc_file_inode_operations = {
@@ -337,10 +337,7 @@
  * the /proc directory.
  */
 static struct file_operations proc_dir_operations = {
-	NULL,			/* lseek - default */
-	NULL,			/* read - bad */
-	NULL,			/* write - bad */
-	proc_readdir,		/* readdir */
+	readdir:		proc_readdir,
 };
 
 /*

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