Browse Source

sys/src/cmd/aux/realemu: fixes the missing = warnings

done with build-fix :)
Sevki 7 years ago
parent
commit
b4ba0e43eb
1 changed files with 18 additions and 18 deletions
  1. 18 18
      sys/src/cmd/aux/realemu/main.c

+ 18 - 18
sys/src/cmd/aux/realemu/main.c

@@ -110,9 +110,9 @@ pw4(unsigned char *p, unsigned long w)
 	print_func_exit();
 }
 static void (*pw[5])(unsigned char *p, unsigned long w) = {
-	[1] pw1,
-	[2] pw2,
-	[4] pw4,
+	[1] = pw1,
+	[2] = pw2,
+	[4] = pw4,
 };
 
 static unsigned long
@@ -391,21 +391,21 @@ static char Ebadoff[] = "invalid offset";
 static char Ebadtrap[] = "bad trap";
 
 static char *trapstr[] = {
-	[EDIV0] "division by zero",
-	[EDEBUG] "debug exception",
-	[ENMI] "not maskable interrupt",
-	[EBRK] "breakpoint",
-	[EINTO] "into overflow",
-	[EBOUND] "bounds check",
-	[EBADOP] "bad opcode",
-	[ENOFPU] "no fpu installed",
-	[EDBLF] "double fault",
-	[EFPUSEG] "fpu segment overflow",
-	[EBADTSS] "invalid task state segment",
-	[ENP] "segment not present",
-	[ESTACK] "stack fault",
-	[EGPF] "general protection fault",
-	[EPF] "page fault",
+	[EDIV0] = "division by zero",
+	[EDEBUG] = "debug exception",
+	[ENMI] = "not maskable interrupt",
+	[EBRK] = "breakpoint",
+	[EINTO] = "into overflow",
+	[EBOUND] = "bounds check",
+	[EBADOP] = "bad opcode",
+	[ENOFPU] = "no fpu installed",
+	[EDBLF] = "double fault",
+	[EFPUSEG] = "fpu segment overflow",
+	[EBADTSS] = "invalid task state segment",
+	[ENP] = "segment not present",
+	[ESTACK] = "stack fault",
+	[EGPF] = "general protection fault",
+	[EPF] = "page fault",
 };
 
 static int flushed(void *);