Skip to contentSkip to conversation

C99 designated initializer patch for fs/exportfs

PATCH Art Haas 1 participant 1 message Sep 28, 2002 Filesystems exportfs

lore
Share & tools
lore

Art Haas

author
#0 lore raw

Hi.

Here's a small patch for converting fs/exportfs/expfs.c to use C99 designated initializers. The patch is against 2.5.39.

Art Haas

fs/exportfs/expfs.c renamed from fs/exportfs/expfs.c.old +5 -5
@@ -514,12 +514,12 @@
 }
 
 struct export_operations export_op_default = {
-	decode_fh:	export_decode_fh,
-	encode_fh:	export_encode_fh,
+	.decode_fh	= export_decode_fh,
+	.encode_fh	= export_encode_fh,
 
-	get_name:	get_name,
-	get_parent:	get_parent,
-	get_dentry:	get_object,
+	.get_name	= get_name,
+	.get_parent	= get_parent,
+	.get_dentry	= get_object,
 };
 
 EXPORT_SYMBOL(export_op_default);
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