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. --- gas/hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/hash.c') diff --git a/gas/hash.c b/gas/hash.c index 4a4768c..06fadcb 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; -- cgit v1.1