aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-02-28 19:40:12 +0000
committerNick Clifton <nickc@redhat.com>2001-02-28 19:40:12 +0000
commita59e3bd7463c5ad3a3087ca19796e6c4972da1a6 (patch)
tree9b4379aba52809f4754cfb7d251543335cada8ba /binutils/readelf.c
parent7c44d1d36023fecce76b8805c7349af3be41e0f2 (diff)
downloadgdb-a59e3bd7463c5ad3a3087ca19796e6c4972da1a6.zip
gdb-a59e3bd7463c5ad3a3087ca19796e6c4972da1a6.tar.gz
gdb-a59e3bd7463c5ad3a3087ca19796e6c4972da1a6.tar.bz2
Remove non-K&R compliant LHS type cast in call to GET_DATA_ALLOC macro.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 18928c5..d4bddec 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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. */
- const char * strtab; /* The string table. */
+ char * strtab; /* The 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,
- (char *) aux.strtab, char *, "string table");
+ aux.strtab, const char *, "string table");
}
else if (sec->sh_type == SHT_IA_64_UNWIND)
unwsec = sec;