sim: igen: minor constify logic
Copy some improvements from the ppc igen code.
This commit is contained in:
parent
0a4d338dd0
commit
fd520e1af1
1 changed files with 2 additions and 2 deletions
|
@ -215,8 +215,8 @@ name2i (const char *names, const name_map * map)
|
|||
while (*name != '\0')
|
||||
{
|
||||
/* find our name */
|
||||
char *end = strchr (name, ',');
|
||||
char *next;
|
||||
const char *end = strchr (name, ',');
|
||||
const char *next;
|
||||
unsigned len;
|
||||
if (end == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue