summaryrefslogtreecommitdiff
path: root/gas/hash.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/hash.c
parent1631ca86c3bde3a7b7089ade915f9aeea47b6034 (diff)
downloadbinutils-gdb-78aff5a5271ab14960fec98805bd1c295cab6d8d.tar.gz
Remove unnecessary casts on obstack_alloc invocations.
Diffstat (limited to 'gas/hash.c')
-rw-r--r--gas/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/hash.c b/gas/hash.c
index 4a4768c4af4..06fadcbf4d7 100644
--- a/gas/hash.c
+++ b/gas/hash.c
@@ -237,7 +237,7 @@ hash_insert (struct hash_control *table, const char *key, void *value)
++table->insertions;
#endif
- p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof (*p));
+ p = obstack_alloc (&table->memory, sizeof (*p));
p->string = key;
p->hash = hash;
p->data = value;
@@ -274,7 +274,7 @@ hash_jam (struct hash_control *table, const char *key, void *value)
++table->insertions;
#endif
- p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof (*p));
+ p = obstack_alloc (&table->memory, sizeof (*p));
p->string = key;
p->hash = hash;
p->data = value;