sim: igen: minor constify logic

Copy some improvements from the ppc igen code.
This commit is contained in:
Mike Frysinger 2024-01-01 17:09:02 -05:00
parent 0a4d338dd0
commit fd520e1af1

View file

@ -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)
{