diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-29 02:39:28 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-01-06 12:06:40 -0700 |
commit | cc2f3c3582677a3697f416618ddee86eee7ed5ba (patch) | |
tree | 5a233f755248b2293726d821fbaf02a6a439591b | |
parent | 369be6981b26787b2685e3b8c6da779dae8ce35f (diff) | |
download | gdb-cc2f3c3582677a3697f416618ddee86eee7ed5ba.zip gdb-cc2f3c3582677a3697f416618ddee86eee7ed5ba.tar.gz gdb-cc2f3c3582677a3697f416618ddee86eee7ed5ba.tar.bz2 |
convert CONST to const
This removes the last uses of the obsolete CONST macro from the tree.
I'm checking this in. Tested by rebuilding.
2014-01-06 Tom Tromey <tromey@redhat.com>
* doublest.c (convert_doublest_to_floatformat): Use const, not
CONST.
* somread.c (som_symtab_read): Likewise.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doublest.c | 2 | ||||
-rw-r--r-- | gdb/somread.c | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 629aebd..577c4b0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-01-06 Tom Tromey <tromey@redhat.com> + + * doublest.c (convert_doublest_to_floatformat): Use const, not + CONST. + * somread.c (som_symtab_read): Likewise. + 2014-01-07 Hui Zhu <hui@codesourcery.com> * gdb_bfd.c (gdb_bfd_stash_filename): Removed. diff --git a/gdb/doublest.c b/gdb/doublest.c index 086bb42..a6c11d8 100644 --- a/gdb/doublest.c +++ b/gdb/doublest.c @@ -342,7 +342,7 @@ put_field (unsigned char *data, enum floatformat_byteorders order, restrictions. */ static void -convert_doublest_to_floatformat (CONST struct floatformat *fmt, +convert_doublest_to_floatformat (const struct floatformat *fmt, const DOUBLEST *from, void *to) { DOUBLEST dfrom; diff --git a/gdb/somread.c b/gdb/somread.c index 6096883..79068cd 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -54,7 +54,7 @@ som_symtab_read (bfd *abfd, struct objfile *objfile, asection *shlib_info; struct som_external_symbol_dictionary_record *buf, *bufp, *endbufp; char *symname; - CONST int symsize = sizeof (struct som_external_symbol_dictionary_record); + const int symsize = sizeof (struct som_external_symbol_dictionary_record); #define text_offset ANOFFSET (section_offsets, SECT_OFF_TEXT (objfile)) |