diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-09-12 16:13:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-09-12 16:13:04 +0000 |
commit | 2da3d6892b2c11618a92650b46045caaa144d971 (patch) | |
tree | 45fd6cff50e9449f0b6d8f0dc8dcab7ea92868ac /gdb/valprint.c | |
parent | 4bd6e9ed748dc18a5a3178c585f2c064e48c8cf5 (diff) | |
download | gdb-2da3d6892b2c11618a92650b46045caaa144d971.tar.gz |
2004-09-12 Andrew Cagney <cagney@gnu.org>
* valprint.c (print_longest): Use fputs_filtered. Make "val"
const.
* Makefile.in (valprint.o): Delete explict rule.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 64216f85f0b..fd92750b8c6 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -230,7 +230,8 @@ void print_longest (struct ui_file *stream, int format, int use_c_format, LONGEST val_long) { - char *val; + const char *val; + switch (format) { case 'd': @@ -253,8 +254,7 @@ print_longest (struct ui_file *stream, int format, int use_c_format, default: internal_error (__FILE__, __LINE__, "failed internal consistency check"); } - - fprintf_filtered (stream, val); + fputs_filtered (val, stream); } /* This used to be a macro, but I don't think it is called often enough |