aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jvspec.c
diff options
context:
space:
mode:
authorJens-Michael Hoffmann <jensmh@gmx.de>2002-11-18 15:46:34 +0000
committerAndrew Haley <aph@gcc.gnu.org>2002-11-18 15:46:34 +0000
commita92cb0c3d32169727f3b3a0543bda241663d1244 (patch)
treeeb8e95ee304089b9733a38cca3a66ca60c241853 /gcc/java/jvspec.c
parente7e0de7e333f5389009e7f7b9894c97035021609 (diff)
downloadgcc-a92cb0c3d32169727f3b3a0543bda241663d1244.zip
gcc-a92cb0c3d32169727f3b3a0543bda241663d1244.tar.gz
gcc-a92cb0c3d32169727f3b3a0543bda241663d1244.tar.bz2
buffer.c: Remove unnecessary casts.
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. From-SVN: r59224
Diffstat (limited to 'gcc/java/jvspec.c')
-rw-r--r--gcc/java/jvspec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/java/jvspec.c b/gcc/java/jvspec.c
index e531f7c..8638ac3 100644
--- a/gcc/java/jvspec.c
+++ b/gcc/java/jvspec.c
@@ -88,8 +88,8 @@ find_spec_file (dir)
int x;
struct stat sb;
- spec = (char *) xmalloc (strlen (dir) + sizeof (SPEC_FILE)
- + sizeof ("-specs=") + 4);
+ spec = xmalloc (strlen (dir) + sizeof (SPEC_FILE)
+ + sizeof ("-specs=") + 4);
strcpy (spec, "-specs=");
x = strlen (spec);
strcat (spec, dir);
@@ -251,7 +251,7 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
argv = *in_argv;
added_libraries = *in_added_libraries;
- args = (int *) xcalloc (argc, sizeof (int));
+ args = xcalloc (argc, sizeof (int));
for (i = 1; i < argc; i++)
{
@@ -496,7 +496,7 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
num_args += shared_libgcc;
- arglist = (const char **) xmalloc ((num_args + 1) * sizeof (char *));
+ arglist = xmalloc ((num_args + 1) * sizeof (char *));
j = 0;
for (i = 0; i < argc; i++, j++)