public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* C99 designated initializer patch for fs/exportfs
@ 2002-09-28 17:56 Art Haas
  0 siblings, 0 replies; only message in thread
From: Art Haas @ 2002-09-28 17:56 UTC (permalink / raw)
  To: linux-kernel

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


--- linux-2.5.39/fs/exportfs/expfs.c.old	2002-07-05 18:42:19.000000000 -0500
+++ linux-2.5.39/fs/exportfs/expfs.c	2002-09-28 10:36:22.000000000 -0500
@@ -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);
-- 
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-28 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-28 17:56 C99 designated initializer patch for fs/exportfs Art Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox