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:
parent
11d48be49e
commit
760da1f421
|
@ -140,7 +140,7 @@ f_regsave()
|
|||
|
||||
void
|
||||
regsave(regstr, off, size)
|
||||
char *regstr;
|
||||
const char *regstr;
|
||||
long off;
|
||||
{
|
||||
if (strcmp(regstr, "esi") == 0) {
|
||||
|
|
|
@ -137,7 +137,7 @@ f_regsave()
|
|||
|
||||
void
|
||||
regsave(regstr, off, size)
|
||||
char *regstr;
|
||||
const char *regstr;
|
||||
long off;
|
||||
{
|
||||
if (strcmp(regstr, "si") == 0) {
|
||||
|
|
|
@ -184,7 +184,7 @@ f_regsave()
|
|||
|
||||
void
|
||||
regsave(s,off,size)
|
||||
char *s;
|
||||
const char *s;
|
||||
long off;
|
||||
{
|
||||
assert (regnr < 9);
|
||||
|
|
Loading…
Reference in a new issue