Skip to contentSkip to conversation

Fix warning

PATCH Applied Hervé Poussineau 2 participants 2 messages Sep 6, 2008 – Sep 14, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning

Hi,

Attached patch fixes a warning in cpu_mips_find_by_name(). 'name' is a string, so it should be declared as char*, not unsigned char*.

Hervé

translate_init.c +1 -1
Index: target-mips/translate_init.c
===================================================================
@@ -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;
 
#1 lore raw
Quoted 4 lines · Hervé Poussineau

Hi,

Attached patch fixes a warning in cpu_mips_find_by_name(). 'name' is a string, so it should be declared as char*, not unsigned char*.

Applied, thanks

Quoted 15 lines

Hervé

Index: target-mips/translate_init.c
===================================================================

translate_init.c +1 -1
@@ -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;
 
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net