aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-04-11 00:08:08 +0000
committerAlan Modra <amodra@gmail.com>2005-04-11 00:08:08 +0000
commit514d955ded1ad3ca20e22ee3dddeabf0c3b84296 (patch)
treeed9187220787834ae169a38bfe699bab05109de1 /gas/symbols.c
parent218755fe84d3dbc78bcc940c3b01f9bc21545f3d (diff)
downloadgdb-514d955ded1ad3ca20e22ee3dddeabf0c3b84296.zip
gdb-514d955ded1ad3ca20e22ee3dddeabf0c3b84296.tar.gz
gdb-514d955ded1ad3ca20e22ee3dddeabf0c3b84296.tar.bz2
* symbols.c (symbol_X_add_number): Change return type to "offsetT *".
* symbols.h (symbol_X_add_number): Update prototype.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index c8773f1..002ae35 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -2024,15 +2024,15 @@ symbol_set_value_expression (symbolS *s, const expressionS *exp)
/* Return a pointer to the X_add_number component of a symbol. */
-valueT *
+offsetT *
symbol_X_add_number (symbolS *s)
{
#ifdef BFD_ASSEMBLER
if (LOCAL_SYMBOL_CHECK (s))
- return &((struct local_symbol *) s)->lsy_value;
+ return (offsetT *) &((struct local_symbol *) s)->lsy_value;
#endif
- return (valueT *)&s->sy_value.X_add_number;
+ return &s->sy_value.X_add_number;
}
/* Set the value of SYM to the current position in the current segment. */