Skip to contentSkip to conversation

Fix compiler warning

PATCH New Stefan Weil 1 participant 1 message Jul 20, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compiler warning

Hello,

this patch fixes a compiler warning (signed/unsigned char mismatch). There is no reason to use unsigned char * instead of char *.

Please apply it to Qemu SVN trunk.

Regards
Stefan

translate_init.c +2 -2
Index: target-mips/translate_init.c
===================================================================
@@ -63,7 +63,7 @@
 };
 
 struct mips_def_t {
-    const unsigned char *name;
+    const char *name;
     int32_t CP0_PRid;
     int32_t CP0_Config0;
     int32_t CP0_Config1;
@@ -417,7 +417,7 @@
 #endif
 };
 
-static const mips_def_t *cpu_mips_find_by_name (const unsigned char *name)
+static const mips_def_t *cpu_mips_find_by_name (const char *name)
 {
     int i;