Remove non-K&R compliant LHS type cast in call to GET_DATA_ALLOC macro.
authorNick Clifton <nickc@redhat.com>
Wed, 28 Feb 2001 19:40:12 +0000 (19:40 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 28 Feb 2001 19:40:12 +0000 (19:40 +0000)
binutils/ChangeLog
binutils/readelf.c

index aa91011..87065d1 100644 (file)
@@ -1,3 +1,10 @@
+2001-02-28  Nick Clifton  <nickc@redhat.com>
+
+       * readelf.c: (struct unw_aux_info): Remove const modifier for
+       'strtab' field.
+       (process_unwind): Remove non-K&R compliant LHS type cast in call
+       to GET_DATA_ALLOC macro.
+
 2001-02-28  Philip Blundell  <pb@futuretv.com>
 
        * readelf.c (decode_ARM_machine_flags): Explicitly mention which
 2001-02-28  Philip Blundell  <pb@futuretv.com>
 
        * readelf.c (decode_ARM_machine_flags): Explicitly mention which
index 18928c5..d4bddec 100644 (file)
@@ -3138,7 +3138,7 @@ struct unw_aux_info
     bfd_vma               seg_base;    /* Starting address of segment.  */
     Elf_Internal_Sym *    symtab;      /* The symbol table.  */
     unsigned              long nsyms;  /* Number of symbols.  */
     bfd_vma               seg_base;    /* Starting address of segment.  */
     Elf_Internal_Sym *    symtab;      /* The symbol table.  */
     unsigned              long nsyms;  /* Number of symbols.  */
-    const char *          strtab;      /* The string table.  */
+    char *                strtab;      /* The string table.  */
     unsigned long         strtab_size; /* Size of string table.  */
   };
 
     unsigned long         strtab_size; /* Size of string table.  */
   };
 
@@ -3425,7 +3425,7 @@ process_unwind (file)
          strsec = section_headers + sec->sh_link;
          aux.strtab_size = strsec->sh_size;
          GET_DATA_ALLOC (strsec->sh_offset, aux.strtab_size,
          strsec = section_headers + sec->sh_link;
          aux.strtab_size = strsec->sh_size;
          GET_DATA_ALLOC (strsec->sh_offset, aux.strtab_size,
-                         (char *) aux.strtab, char *, "string table");
+                         aux.strtab, const char *, "string table");
        }
       else if (sec->sh_type == SHT_IA_64_UNWIND)
        unwsec = sec;
        }
       else if (sec->sh_type == SHT_IA_64_UNWIND)
        unwsec = sec;