aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-01 17:09:02 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-01 17:09:02 -0500
commitfd520e1af1d4c6b907582cb22ddcb581c39614f2 (patch)
tree7de73c056494c630e49d542784bfc0d3850624f2
parent0a4d338dd017cba31395888ac7fe960371915fb5 (diff)
downloadgdb-fd520e1af1d4c6b907582cb22ddcb581c39614f2.zip
gdb-fd520e1af1d4c6b907582cb22ddcb581c39614f2.tar.gz
gdb-fd520e1af1d4c6b907582cb22ddcb581c39614f2.tar.bz2
sim: igen: minor constify logic
Copy some improvements from the ppc igen code.
-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)
{