diff options
Diffstat (limited to 'gcc/prefix.c')
-rw-r--r-- | gcc/prefix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/prefix.c b/gcc/prefix.c index ef9d9b8da92..df556aaa30c 100644 --- a/gcc/prefix.c +++ b/gcc/prefix.c @@ -155,12 +155,12 @@ lookup_key (char *key) } size = 32; - dst = (char *) xmalloc (size); + dst = xmalloc (size); res = RegQueryValueExA (reg_key, key, 0, &type, dst, &size); if (res == ERROR_MORE_DATA && type == REG_SZ) { - dst = (char *) xrealloc (dst, size); + dst = xrealloc (dst, size); res = RegQueryValueExA (reg_key, key, 0, &type, dst, &size); } @@ -197,7 +197,7 @@ translate_name (char *name) keylen++) ; - key = (char *) alloca (keylen + 1); + key = alloca (keylen + 1); strncpy (key, &name[1], keylen); key[keylen] = 0; |