[PATCH/committed,4/8] sim: igen: minor constify logic

Message ID 20240101232219.3003-4-vapier@gentoo.org
State New
Headers
Series [PATCH/committed,1/8] sim: ppc: hoist igen compilation into top-level |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Mike Frysinger Jan. 1, 2024, 11:22 p.m. UTC
  Copy some improvements from the ppc igen code.
---
 sim/igen/misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/sim/igen/misc.c b/sim/igen/misc.c
index a083f6d1bbd2..fface6f66d5a 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)
 	{