From 760da1f421a2fd5f35fdc597dd389dcd332a8c5a Mon Sep 17 00:00:00 2001 From: George Koehler Date: Fri, 17 Nov 2017 17:52:37 -0500 Subject: [PATCH] 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. --- mach/i386/ncg/mach.c | 2 +- mach/i86/ncg/mach.c | 2 +- mach/m68020/ncg/mach.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mach/i386/ncg/mach.c b/mach/i386/ncg/mach.c index 1497974be..34a4b6f16 100644 --- a/mach/i386/ncg/mach.c +++ b/mach/i386/ncg/mach.c @@ -140,7 +140,7 @@ f_regsave() void regsave(regstr, off, size) - char *regstr; + const char *regstr; long off; { if (strcmp(regstr, "esi") == 0) { diff --git a/mach/i86/ncg/mach.c b/mach/i86/ncg/mach.c index 817599147..d93eaba3d 100644 --- a/mach/i86/ncg/mach.c +++ b/mach/i86/ncg/mach.c @@ -137,7 +137,7 @@ f_regsave() void regsave(regstr, off, size) - char *regstr; + const char *regstr; long off; { if (strcmp(regstr, "si") == 0) { diff --git a/mach/m68020/ncg/mach.c b/mach/m68020/ncg/mach.c index 4f710348d..f230761c4 100644 --- a/mach/m68020/ncg/mach.c +++ b/mach/m68020/ncg/mach.c @@ -184,7 +184,7 @@ f_regsave() void regsave(s,off,size) - char *s; + const char *s; long off; { assert (regnr < 9);