aboutsummaryrefslogtreecommitdiff
path: root/gas/hash.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-08-12 23:39:31 +0000
committerAlan Modra <amodra@gmail.com>2008-08-12 23:39:31 +0000
commit5a49b8acf456d4a049c002fae31b83a10b35e6f8 (patch)
treec55c2f40551c32d774a8dfd9c61b5ba503dc954a /gas/hash.c
parent11fa8e431388f2e50d86cd4af26b748eba56b10e (diff)
downloadgdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.zip
gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.tar.gz
gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.tar.bz2
Banish PARAMS and PTR. Convert to ISO C.
Delete unnecessary forward declarations.
Diffstat (limited to 'gas/hash.c')
-rw-r--r--gas/hash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/hash.c b/gas/hash.c
index 4eab512..4a4768c 100644
--- a/gas/hash.c
+++ b/gas/hash.c
@@ -290,7 +290,7 @@ hash_jam (struct hash_control *table, const char *key, void *value)
value stored for the entry. If the entry is not found in the hash
table, this does nothing and returns NULL. */
-PTR
+void *
hash_replace (struct hash_control *table, const char *key, void *value)
{
struct hash_entry *p;
@@ -314,7 +314,7 @@ hash_replace (struct hash_control *table, const char *key, void *value)
/* Find an entry in a hash table, returning its value. Returns NULL
if the entry is not found. */
-PTR
+void *
hash_find (struct hash_control *table, const char *key)
{
struct hash_entry *p;
@@ -329,7 +329,7 @@ hash_find (struct hash_control *table, const char *key)
/* As hash_find, but KEY is of length LEN and is not guaranteed to be
NUL-terminated. */
-PTR
+void *
hash_find_n (struct hash_control *table, const char *key, size_t len)
{
struct hash_entry *p;
@@ -344,7 +344,7 @@ hash_find_n (struct hash_control *table, const char *key, size_t len)
/* Delete an entry from a hash table. This returns the value stored
for that entry, or NULL if there is no such entry. */
-PTR
+void *
hash_delete (struct hash_control *table, const char *key, int freeme)
{
struct hash_entry *p;