1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +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

@@ -239,14 +239,14 @@ t_addr ad, ea;
if ((dptr == sim_devices[0]) &&
((sim_switches & SWMASK ('T')) ||
((cpu_unit.flags & UNIT_TTSS_D) && !(sim_switches & SWMASK ('N'))))) {
ad = (t_addr) strtotv (cptr, tptr, 10);
ad = (t_addr) strtotv (cptr, (const char **)tptr, 10);
if (((ad / 100) >= NTK_30) || ((ad % 100) >= NSC_30)) {
*tptr = cptr;
return 0;
}
ea = ((ad / 100) * NSC_30) | (ad % 100);
}
else ea = (t_addr) strtotv (cptr, tptr, dptr->aradix);
else ea = (t_addr) strtotv (cptr, (const char **)tptr, dptr->aradix);
return ea;
}