Fix warning
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
@@ -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;
Aurelien Jarno
AppliedQuoted 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