diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-02-26 18:25:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-02-26 18:25:23 +0000 |
commit | 68241b2b3f91c517b33a1d234ade7ed834f31f54 (patch) | |
tree | 41b3201d99fe49def28b99f908a7519b74f1deaf /bfd/srec.c | |
parent | 3d51f02f4c683aa29fb45e9083ddddd1a1b9ce97 (diff) | |
download | gdb-68241b2b3f91c517b33a1d234ade7ed834f31f54.zip gdb-68241b2b3f91c517b33a1d234ade7ed834f31f54.tar.gz gdb-68241b2b3f91c517b33a1d234ade7ed834f31f54.tar.bz2 |
* aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc.
* ecoff.c, ecofflink.c, ecoffswap.h, srec.c: Likewise.
* elf32-i386.c: Likewise.
* elfcode.h (bfd_section_from_shdr): Make i unsigned; remove old
#if 0 code.
(elf_write_phdrs): Make i unsigned.
(map_program_segments): Make i and n_left unsigned.
(assign_file_positions_except_relocs): Make i unsigned.
(write_shdrs_and_ehdr): Make count unsigned.
(assign_file_positions_for_relocs): Make i unsigned.
(NAME(bfd,elf_write_object_contents)): Make count unsigned.
(section_from_elf_index): Make index argument unsigned.
Diffstat (limited to 'bfd/srec.c')
-rw-r--r-- | bfd/srec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -586,7 +586,7 @@ DEFUN (srec_set_section_contents, (abfd, section, location, offset, bytes_to_do) bfd_set_error (bfd_error_no_memory); return false; } - memcpy (data, location, bytes_to_do); + memcpy ((PTR) data, location, bytes_to_do); if ((section->lma + offset + bytes_to_do) <= 0xffff) { |