From: nickc Date: Wed, 28 Feb 2001 19:40:12 +0000 (+0000) Subject: Remove non-K&R compliant LHS type cast in call to GET_DATA_ALLOC macro. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e6d0eca86bc64aa8d8455601b361714ee4f1dd39;p=pf3gnuchains%2Fpf3gnuchains3x.git Remove non-K&R compliant LHS type cast in call to GET_DATA_ALLOC macro. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index aa9101115a..87065d1c63 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2001-02-28 Nick Clifton + + * 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 * readelf.c (decode_ARM_machine_flags): Explicitly mention which diff --git a/binutils/readelf.c b/binutils/readelf.c index 18928c5e11..d4bddec54c 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;