From: Geert Uytterhoeven <geert@linux-m68k.org>

M68k math emulator: Use C99 struct initializers



 arch/m68k/math-emu/fp_arith.c |    5 +++--
 arch/m68k/math-emu/fp_log.c   |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff -puN arch/m68k/math-emu/fp_arith.c~68k-351 arch/m68k/math-emu/fp_arith.c
--- 25/arch/m68k/math-emu/fp_arith.c~68k-351	2004-01-01 13:35:11.000000000 -0800
+++ 25-akpm/arch/m68k/math-emu/fp_arith.c	2004-01-01 13:35:11.000000000 -0800
@@ -19,12 +19,13 @@
 
 const struct fp_ext fp_QNaN =
 {
-	0, 0, 0x7fff, { ~0 }
+	.exp = 0x7fff,
+	.mant = { .m64 = ~0 }
 };
 
 const struct fp_ext fp_Inf =
 {
-	0, 0, 0x7fff, { 0 }
+	.exp = 0x7fff,
 };
 
 /* let's start with the easy ones */
diff -puN arch/m68k/math-emu/fp_log.c~68k-351 arch/m68k/math-emu/fp_log.c
--- 25/arch/m68k/math-emu/fp_log.c~68k-351	2004-01-01 13:35:11.000000000 -0800
+++ 25-akpm/arch/m68k/math-emu/fp_log.c	2004-01-01 13:35:11.000000000 -0800
@@ -19,7 +19,7 @@
 
 static const struct fp_ext fp_one =
 {
-	0, 0, 0x3fff, { 0 }
+	.exp = 0x3fff,
 };
 
 extern struct fp_ext *fp_fadd(struct fp_ext *dest, const struct fp_ext *src);

_