diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-08-12 23:39:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2008-08-12 23:39:31 +0000 |
commit | b12ec56f7e6a03f06d87d4adea43a45cf5691229 (patch) | |
tree | 277009d107f9f755e7a4c96d0c57080b7624094f /gas/symbols.c | |
parent | fb55a3a07b0b555a4763df5adebf7775453681d6 (diff) | |
download | binutils-redhat-b12ec56f7e6a03f06d87d4adea43a45cf5691229.tar.gz |
Banish PARAMS and PTR. Convert to ISO C.
Delete unnecessary forward declarations.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/symbols.c b/gas/symbols.c index c7262b8445..30207109a3 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -204,7 +204,7 @@ local_symbol_make (const char *name, segT section, valueT value, fragS *frag) local_symbol_set_frag (ret, frag); ret->lsy_value = value; - hash_jam (local_hash, name_copy, (PTR) ret); + hash_jam (local_hash, name_copy, (void *) ret); return ret; } @@ -489,14 +489,14 @@ symbol_table_insert (symbolS *symbolP) if (LOCAL_SYMBOL_CHECK (symbolP)) { error_string = hash_jam (local_hash, S_GET_NAME (symbolP), - (PTR) symbolP); + (void *) symbolP); if (error_string != NULL) as_fatal (_("inserting \"%s\" into symbol table failed: %s"), S_GET_NAME (symbolP), error_string); return; } - if ((error_string = hash_jam (sy_hash, S_GET_NAME (symbolP), (PTR) symbolP))) + if ((error_string = hash_jam (sy_hash, S_GET_NAME (symbolP), (void *) symbolP))) { as_fatal (_("inserting \"%s\" into symbol table failed: %s"), S_GET_NAME (symbolP), error_string); @@ -1438,12 +1438,12 @@ exit_dont_set_value: return final_val; } -static void resolve_local_symbol (const char *, PTR); +static void resolve_local_symbol (const char *, void *); /* A static function passed to hash_traverse. */ static void -resolve_local_symbol (const char *key ATTRIBUTE_UNUSED, PTR value) +resolve_local_symbol (const char *key ATTRIBUTE_UNUSED, void *value) { if (value != NULL) resolve_symbol_value (value); |