aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/initialize.c
diff options
context:
space:
mode:
authorRainer Emrich <rainer@emrich-ebersheim.de>2013-02-06 12:01:20 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2013-02-06 13:01:20 +0100
commitba1a92332821228d24550c82f0ae5db268910b7c (patch)
tree4baf90c16f328b7ad87739ed4b7c6605ffe44532 /gcc/ada/initialize.c
parent9bc44bff6fbb70abfaae86a9e954dbd750d5cece (diff)
downloadgcc-ba1a92332821228d24550c82f0ae5db268910b7c.zip
gcc-ba1a92332821228d24550c82f0ae5db268910b7c.tar.gz
gcc-ba1a92332821228d24550c82f0ae5db268910b7c.tar.bz2
re PR ada/52123 (gcc bootstrap with ada fails on mingw target)
2013-02-06 Rainer Emrich <rainer@emrich-ebersheim.de> PR target/52123 * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via SECURITY_DESCRIPTOR * (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE (__gnat_portable_spawn): Fix cast to char* const* (add_handle): Cast from pointer via void ** (add_handle): Cast from pointer via int * (__gnat_locate_exec_on_path): Cast from pointer via TCHAR * (__gnat_locate_exec_on_path): Cast from pointer via char * * initialize.c (append_arg): Cast from pointer via LPWSTR (__gnat_initialize): Cast from pointer via LPWSTR * seh_init.c (__gnat_map_SEH): Cast from pointer via FARPROC From-SVN: r195803
Diffstat (limited to 'gcc/ada/initialize.c')
-rw-r--r--gcc/ada/initialize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/initialize.c b/gcc/ada/initialize.c
index 6b92d27..00c4d04 100644
--- a/gcc/ada/initialize.c
+++ b/gcc/ada/initialize.c
@@ -88,14 +88,14 @@ append_arg (int *index, LPWSTR dir, LPWSTR value,
{
/* no dir prefix */
dirlen = 0;
- fullvalue = xmalloc ((vallen + 1) * sizeof(TCHAR));
+ fullvalue = (LPWSTR) xmalloc ((vallen + 1) * sizeof(TCHAR));
}
else
{
/* Add dir first */
dirlen = _tcslen (dir);
- fullvalue = xmalloc ((dirlen + vallen + 1) * sizeof(TCHAR));
+ fullvalue = (LPWSTR) xmalloc ((dirlen + vallen + 1) * sizeof(TCHAR));
_tcscpy (fullvalue, dir);
}
@@ -203,7 +203,7 @@ __gnat_initialize (void *eh ATTRIBUTE_UNUSED)
if (ldir != NULL)
{
int n = ldir - wargv[k] + 1;
- dir = xmalloc ((n + 1) * sizeof (TCHAR));
+ dir = (LPWSTR) xmalloc ((n + 1) * sizeof (TCHAR));
_tcsncpy (dir, wargv[k], n);
dir[n] = _T('\0');
}