changeset 44:a87701c575cf

applied patch 11-sparse-fix--use-C99-struct-initializer.diff
author marty
date Sun, 31 Jul 2005 05:05:14 +0100
parents bd62b24db568
children 17fade182010
files mtdemul/nandemul2k.c yaffs_mtdif.c
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mtdemul/nandemul2k.c
+++ b/mtdemul/nandemul2k.c
@@ -650,9 +650,9 @@ MODULE_PARM(sizeInMB, "i");
 
 static struct mtd_partition nandemul2k_partition[] =
 {
-	{ name: "NANDemul partition 1",
-	  offset:  0,
-	  size: 0 },
+	{ .name		= "NANDemul partition 1",
+	  .offset	= 0,
+	  .size		= 0 },
 };
 
 static int nPartitions = sizeof(nandemul2k_partition)/sizeof(nandemul2k_partition[0]);
--- a/yaffs_mtdif.c
+++ b/yaffs_mtdif.c
@@ -30,12 +30,12 @@ const char *yaffs_mtdif_c_version = "$Id
 #endif
 
 struct nand_oobinfo yaffs_oobinfo = {
-	useecc: 1,
-	eccpos: {8, 9, 10, 13, 14, 15}
+	.useecc = 1,
+	.eccpos = {8, 9, 10, 13, 14, 15}
 };
 
 struct nand_oobinfo yaffs_noeccinfo = {
-	useecc: 0,
+	.useecc = 0,
 };