From 78aff5a5271ab14960fec98805bd1c295cab6d8d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 21 Oct 2008 00:26:17 +0000 Subject: Remove unnecessary casts on obstack_alloc invocations. --- binutils/windres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binutils/windres.c') diff --git a/binutils/windres.c b/binutils/windres.c index e68a504cf3..98ce1652a0 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. */ -- cgit v1.2.3