Fix build with gcc.

gcc gave an error because the `char *` parameter doesn't match the
`const char *` in the prototype of regsave().  clang didn't give an
error.  I added the prototype in commit 5301cce.
This commit is contained in:
George Koehler 2017-11-17 17:52:37 -05:00
parent 11d48be49e
commit 760da1f421
3 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ f_regsave()
void void
regsave(regstr, off, size) regsave(regstr, off, size)
char *regstr; const char *regstr;
long off; long off;
{ {
if (strcmp(regstr, "esi") == 0) { if (strcmp(regstr, "esi") == 0) {

View file

@ -137,7 +137,7 @@ f_regsave()
void void
regsave(regstr, off, size) regsave(regstr, off, size)
char *regstr; const char *regstr;
long off; long off;
{ {
if (strcmp(regstr, "si") == 0) { if (strcmp(regstr, "si") == 0) {

View file

@ -184,7 +184,7 @@ f_regsave()
void void
regsave(s,off,size) regsave(s,off,size)
char *s; const char *s;
long off; long off;
{ {
assert (regnr < 9); assert (regnr < 9);