summaryrefslogtreecommitdiff
path: root/gcc/config/i386/cygwin1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/cygwin1.c')
-rw-r--r--gcc/config/i386/cygwin1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/i386/cygwin1.c b/gcc/config/i386/cygwin1.c
index fb8657acd3c..3ba812fe449 100644
--- a/gcc/config/i386/cygwin1.c
+++ b/gcc/config/i386/cygwin1.c
@@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see
void
mingw_scan (int argc ATTRIBUTE_UNUSED,
const char *const *argv,
- char **spec_machine)
+ const char **spec_machine)
{
putenv (xstrdup ("GCC_CYGWIN_MINGW=0"));
@@ -42,7 +42,7 @@ mingw_scan (int argc ATTRIBUTE_UNUSED,
if (p)
{
int len = p - *spec_machine;
- char *s = xmalloc (strlen (*spec_machine) + 3);
+ char *s = XNEWVEC (char, strlen (*spec_machine) + 3);
memcpy (s, *spec_machine, len);
strcpy (s + len, "-mingw32");
*spec_machine = s;