Skip to contentSkip to conversation

2.5.42 qnx4fs (1/2): ISO C initializers

PATCH RESEND New Anders Larsen 1 participant 1 message Oct 13, 2002 QNX4 filesystem

lore
Share & tools
lore

Anders Larsen

author maintainer
#0 lore raw

PATCH RESEND 1/1 2.5.42 qnx4fs (1/2): ISO C initializers

Hi Linus,
please apply this this patch (contributed by Art Haas), which changes the structure initializers in the qnx4fs code to the new ISO C style used by the rest of the kernel.

Cheers
Anders (qnx4fs maintainer)

fs/qnx4/dir.c +7 -7
diff -ur linux-2.5.42.orig/fs/qnx4/dir.c linux-2.5.42/fs/qnx4/dir.c
@@ -85,17 +85,17 @@
 
 struct file_operations qnx4_dir_operations =
 {
-	read:		generic_read_dir,
-	readdir:	qnx4_readdir,
-	fsync:		file_fsync,
+	.read		= generic_read_dir,
+	.readdir	= qnx4_readdir,
+	.fsync		= file_fsync,
 };
 
 struct inode_operations qnx4_dir_inode_operations =
 {
-	lookup:		qnx4_lookup,
+	.lookup		= qnx4_lookup,
 #ifdef CONFIG_QNX4FS_RW
-	create:		qnx4_create,
-	unlink:		qnx4_unlink,
-	rmdir:		qnx4_rmdir,
+	.create		= qnx4_create,
+	.unlink		= qnx4_unlink,
+	.rmdir		= qnx4_rmdir,
 #endif
 };
fs/qnx4/file.c +7 -9
diff -ur linux-2.5.42.orig/fs/qnx4/file.c linux-2.5.42/fs/qnx4/file.c
@@ -24,21 +24,19 @@
  */
 struct file_operations qnx4_file_operations =
 {
-	llseek:			generic_file_llseek,
-	read:			generic_file_read,
+	.llseek		= generic_file_llseek,
+	.read		= generic_file_read,
+	.mmap		= generic_file_mmap,
+	.sendfile	= generic_file_sendfile,
 #ifdef CONFIG_QNX4FS_RW
-	write:			generic_file_write,
+	.write		= generic_file_write,
+	.fsync		= qnx4_sync_file,
 #endif
-	mmap:			generic_file_mmap,
-#ifdef CONFIG_QNX4FS_RW
-	fsync:			qnx4_sync_file,
-#endif
-	sendfile:		generic_file_sendfile,
 };
 
 struct inode_operations qnx4_file_inode_operations =
 {
 #ifdef CONFIG_QNX4FS_RW
-	truncate:		qnx4_truncate,
+	.truncate	= qnx4_truncate,
 #endif
 };
fs/qnx4/inode.c +20 -22

62 lines not on this page · raw message