diff options
Diffstat (limited to 'gcc/ada/adaint.c')
-rw-r--r-- | gcc/ada/adaint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index a07f008..69b25e2 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -1348,7 +1348,7 @@ __gnat_get_libraries_from_registry (void) { value_size = name_size = 256; res = RegEnumValue (reg_key, index, name, &name_size, 0, - &type, value, &value_size); + &type, (LPBYTE)value, &value_size); if (res == ERROR_SUCCESS && type == REG_SZ) { @@ -1551,7 +1551,7 @@ __gnat_portable_spawn (char *args[]) #if defined (MSDOS) || defined (_WIN32) /* args[0] must be quotes as it could contain a full pathname with spaces */ - const char *args_0 = args[0]; + char *args_0 = args[0]; args[0] = (char *)xmalloc (strlen (args_0) + 3); strcpy (args[0], "\""); strcat (args[0], args_0); |