Skip to contentSkip to conversation

C99 designated initializer patches for fs/isofs

PATCH Art Haas 1 participant 1 message Sep 28, 2002 Isofs filesystem

lore
Share & tools
lore

Art Haas

author
#0 lore raw

Hi.

Here's a set of patches for fixing fs/isofs to use C99 initializers. Patches are against 2.5.39.

Art Haas

fs/isofs/compress.c renamed from fs/isofs/compress.c.old +1 -1
@@ -325,7 +325,7 @@
 }
 
 struct address_space_operations zisofs_aops = {
-	readpage: zisofs_readpage,
+	.readpage = zisofs_readpage,
 	/* No sync_page operation supported? */
 	/* No bmap operation supported */
 };
fs/isofs/dir.c renamed from fs/isofs/dir.c.old +3 -3
@@ -29,8 +29,8 @@
 
 struct file_operations isofs_dir_operations =
 {
-	read:		generic_read_dir,
-	readdir:	isofs_readdir,
+	.read		= generic_read_dir,
+	.readdir	= isofs_readdir,
 };
 
 /*
@@ -38,7 +38,7 @@
  */
 struct inode_operations isofs_dir_inode_operations =
 {
-	lookup:		isofs_lookup,
+	.lookup		= isofs_lookup,
 };
 
 int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode)
fs/isofs/inode.c renamed from fs/isofs/inode.c.old +21 -21

73 lines not on this page · raw message

fs/isofs/rock.c renamed from fs/isofs/rock.c.old +1 -1
@@ -590,5 +590,5 @@
 }
 
 struct address_space_operations isofs_symlink_aops = {
-	readpage:	rock_ridge_symlink_readpage
+	.readpage	= rock_ridge_symlink_readpage
 };
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759