aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-path.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/jcf-path.c')
-rw-r--r--gcc/java/jcf-path.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c
index ce05088..c9ed323 100644
--- a/gcc/java/jcf-path.c
+++ b/gcc/java/jcf-path.c
@@ -143,7 +143,7 @@ add_entry (entp, filename, is_system)
int len;
struct entry *n;
- n = (struct entry *) ALLOC (sizeof (struct entry));
+ n = ALLOC (sizeof (struct entry));
n->flags = is_system ? FLAG_SYSTEM : 0;
n->next = NULL;
@@ -165,7 +165,7 @@ add_entry (entp, filename, is_system)
work more easily. Eww. */
if (filename[len - 1] != '/' && filename[len - 1] != DIR_SEPARATOR)
{
- char *f2 = (char *) alloca (len + 2);
+ char *f2 = alloca (len + 2);
strcpy (f2, filename);
f2[len] = DIR_SEPARATOR;
f2[len + 1] = '\0';
@@ -191,7 +191,7 @@ add_path (entp, cp, is_system)
if (cp)
{
- char *buf = (char *) alloca (strlen (cp) + 3);
+ char *buf = alloca (strlen (cp) + 3);
startp = endp = cp;
while (1)
{
@@ -299,7 +299,7 @@ jcf_path_init ()
/* Desperation: use the installed one. */
char *extdirs;
add_entry (&sys_dirs, LIBGCJ_ZIP_FILE, 1);
- extdirs = (char *) alloca (strlen (LIBGCJ_ZIP_FILE) + 1);
+ extdirs = alloca (strlen (LIBGCJ_ZIP_FILE) + 1);
strcpy (extdirs, LIBGCJ_ZIP_FILE);
strcpy (&extdirs[strlen (LIBGCJ_ZIP_FILE)
- strlen ("libgcj-" DEFAULT_TARGET_VERSION ".jar")],
@@ -346,7 +346,7 @@ jcf_path_extdirs_arg (cp)
if (cp)
{
- char *buf = (char *) alloca (strlen (cp) + 3);
+ char *buf = alloca (strlen (cp) + 3);
startp = endp = cp;
while (1)
{
@@ -375,9 +375,8 @@ jcf_path_extdirs_arg (cp)
if (direntp->d_name[0] != '.')
{
- char *name =
- (char *) alloca (dirname_length
- + strlen (direntp->d_name) + 2);
+ char *name = alloca (dirname_length
+ + strlen (direntp->d_name) + 2);
strcpy (name, buf);
if (name[dirname_length-1] != DIR_SEPARATOR)
{