]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
convert CONST to const
authorTom Tromey <tromey@redhat.com>
Sun, 29 Dec 2013 09:39:28 +0000 (02:39 -0700)
committerTom Tromey <tromey@redhat.com>
Mon, 6 Jan 2014 19:06:40 +0000 (12:06 -0700)
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
gdb/doublest.c
gdb/somread.c

index 629aebdf35b1c317dda2853a07ad1efded96f926..577c4b0147fc0d1ae144b0e4dce30582bb69621d 100644 (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.
index 086bb428c0d69079658b027d6f79f22a848350cd..a6c11d83b49ed393497ad4ecf1df56a42a8c8c72 100644 (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;
index 60968838665aaf7862b699aeea79f4fa23fca426..79068cd5e0b9f25c2ff3cd8bac1e881a340ce2ac 100644 (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))