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.
This commit is contained in:
Tom Tromey 2013-12-29 02:39:28 -07:00
parent 369be6981b
commit cc2f3c3582
3 changed files with 8 additions and 2 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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))