* [PATCH] convert CONST to const
@ 2014-01-06 19:02 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2014-01-06 19:02 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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.
---
gdb/ChangeLog | 6 ++++++
gdb/doublest.c | 2 +-
gdb/somread.c | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
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))
--
1.8.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-06 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06 19:02 [PATCH] convert CONST to const Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).