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
|
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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue