summaryrefslogtreecommitdiff
path: root/gas/hash.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-10-21 00:26:17 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-10-21 00:26:17 +0000
commitc6a4a1d19f885d8916691785566a5efd2c5e3add (patch)
treef043df48e86e3b2f6096e70c7b4d0f44e94da8e6 /gas/hash.c
parent2333c38fd379076338edc05d2bc75fc7d53f6d02 (diff)
downloadbinutils-redhat-c6a4a1d19f885d8916691785566a5efd2c5e3add.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 4a4768c4af..06fadcbf4d 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;