aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-10-21 00:26:17 +0000
committerAlan Modra <amodra@gmail.com>2008-10-21 00:26:17 +0000
commit78aff5a5271ab14960fec98805bd1c295cab6d8d (patch)
tree43f6e4e4a3f01abe61b8bfad5fdada2d6de8050d /binutils
parent1631ca86c3bde3a7b7089ade915f9aeea47b6034 (diff)
downloadbinutils-78aff5a5271ab14960fec98805bd1c295cab6d8d.zip
binutils-78aff5a5271ab14960fec98805bd1c295cab6d8d.tar.gz
binutils-78aff5a5271ab14960fec98805bd1c295cab6d8d.tar.bz2
Remove unnecessary casts on obstack_alloc invocations.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/windmc.c2
-rw-r--r--binutils/windres.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/binutils/windmc.c b/binutils/windmc.c
index 283c265..9392d65 100644
--- a/binutils/windmc.c
+++ b/binutils/windmc.c
@@ -175,7 +175,7 @@ res_init (void)
void *
res_alloc (rc_uint_type bytes)
{
- return (void *) obstack_alloc (&res_obstack, (size_t) bytes);
+ return obstack_alloc (&res_obstack, (size_t) bytes);
}
static FILE *
diff --git a/binutils/windres.c b/binutils/windres.c
index e68a504..98ce165 100644
--- a/binutils/windres.c
+++ b/binutils/windres.c
@@ -157,7 +157,7 @@ res_init (void)
void *
res_alloc (rc_uint_type bytes)
{
- return (void *) obstack_alloc (&res_obstack, (size_t) bytes);
+ return obstack_alloc (&res_obstack, (size_t) bytes);
}
/* We also use an obstack to save memory used while writing out a set
@@ -178,7 +178,7 @@ reswr_init (void)
void *
reswr_alloc (rc_uint_type bytes)
{
- return (void *) obstack_alloc (&reswr_obstack, (size_t) bytes);
+ return obstack_alloc (&reswr_obstack, (size_t) bytes);
}
/* Open a file using the include directory search list. */