patch-1.3.15 linux/arch/i386/math-emu/errors.c

Next file: linux/arch/i386/math-emu/fpu_emu.h
Previous file: linux/arch/i386/lib/checksum.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/arch/i386/math-emu/errors.c linux/arch/i386/math-emu/errors.c
@@ -85,7 +85,7 @@
 void emu_printall()
 {
   int i;
-  static char *tag_desc[] = { "Valid", "Zero", "ERROR", "ERROR",
+  static const char *tag_desc[] = { "Valid", "Zero", "ERROR", "ERROR",
                               "DeNorm", "Inf", "NaN", "Empty" };
   unsigned char byte1, FPU_modrm;
   unsigned long address = FPU_ORIG_EIP;
@@ -212,7 +212,7 @@
 
 static struct {
   int type;
-  char *name;
+  const char *name;
 } exception_names[] = {
   { EX_StackOver, "stack overflow" },
   { EX_StackUnder, "stack underflow" },

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this