aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
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 /gas/symbols.c
parent1631ca86c3bde3a7b7089ade915f9aeea47b6034 (diff)
downloadgdb-78aff5a5271ab14960fec98805bd1c295cab6d8d.zip
gdb-78aff5a5271ab14960fec98805bd1c295cab6d8d.tar.gz
gdb-78aff5a5271ab14960fec98805bd1c295cab6d8d.tar.bz2
Remove unnecessary casts on obstack_alloc invocations.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 7e4f982..660b2a4 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -137,7 +137,7 @@ symbol_create (const char *name, /* It is copied, the caller can destroy/modify.
preserved_copy_of_name = save_symbol_name (name);
- symbolP = (symbolS *) obstack_alloc (&notes, sizeof (symbolS));
+ symbolP = obstack_alloc (&notes, sizeof (symbolS));
/* symbol must be born in some fixed state. This seems as good as any. */
memset (symbolP, 0, sizeof (symbolS));
@@ -197,7 +197,7 @@ local_symbol_make (const char *name, segT section, valueT value, fragS *frag)
name_copy = save_symbol_name (name);
- ret = (struct local_symbol *) obstack_alloc (&notes, sizeof *ret);
+ ret = obstack_alloc (&notes, sizeof *ret);
ret->lsy_marker = NULL;
ret->lsy_name = name_copy;
ret->lsy_section = section;