1
0
mirror of https://github.com/simh/simh.git synced 2026-02-08 17:22:11 +00:00

Compiler suggested cleanups - mostly const fixups

This commit is contained in:
Mark Pizzolato
2014-10-26 17:06:24 -07:00
parent 5c45aec68f
commit 2e1167d4a0
12 changed files with 63 additions and 53 deletions

View File

@@ -1434,7 +1434,7 @@ for (i = 15; i >= 0; i--) { /* chk named reg */
}
if (*cptr++ != 'R') /* look for R */
return NULL;
regnum = strtotv (cptr, &tptr, 10); /* look for reg # */
regnum = strtotv (cptr, (const char **)&tptr, 10); /* look for reg # */
if ((cptr == tptr) || (regnum > 15))
return NULL;
*rn = (int32) regnum;