diff options
author | Mike Frysinger <vapier@gentoo.org> | 2024-01-01 17:09:02 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-01 17:09:02 -0500 |
commit | fd520e1af1d4c6b907582cb22ddcb581c39614f2 (patch) | |
tree | 7de73c056494c630e49d542784bfc0d3850624f2 | |
parent | 0a4d338dd017cba31395888ac7fe960371915fb5 (diff) | |
download | gdb-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.c | 4 |
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) { |