aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/igen/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/igen/misc.c b/sim/igen/misc.c
index a083f6d..fface6f 100644
--- a/sim/igen/misc.c
+++ b/sim/igen/misc.c
@@ -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)
{