diff options
author | Jens-Michael Hoffmann <jensmh@gmx.de> | 2002-11-18 15:46:34 +0000 |
---|---|---|
committer | Andrew Haley <aph@redhat.com> | 2002-11-18 15:46:34 +0000 |
commit | e8b903c1836f07187d3f29a56a4a47f5ef22734b (patch) | |
tree | eb8e95ee304089b9733a38cca3a66ca60c241853 /gcc/java/jcf-path.c | |
parent | 853ac04881bea66bab30f2cd26d3e620a08e110f (diff) |
2002-11-14 Jens-Michael Hoffmann <jensmh@gmx.de>
* buffer.c: Remove unnecessary casts.
* check-init.c: Likewise.
* class.c: Likewise.
* constants.c: Likewise.
* decl.c: Likewise.
* except.c: Likewise.
* gjavah.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-path.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* verify.c: Likewise.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@59224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-path.c')
-rw-r--r-- | gcc/java/jcf-path.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c index ce05088ba81..c9ed323dea4 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) { |