aboutsummaryrefslogtreecommitdiff
path: root/bfd/srec.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-26 18:25:23 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-26 18:25:23 +0000
commit68241b2b3f91c517b33a1d234ade7ed834f31f54 (patch)
tree41b3201d99fe49def28b99f908a7519b74f1deaf /bfd/srec.c
parent3d51f02f4c683aa29fb45e9083ddddd1a1b9ce97 (diff)
downloadgdb-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/srec.c b/bfd/srec.c
index 5e020a2..6c6f875 100644
--- a/bfd/srec.c
+++ b/bfd/srec.c
@@ -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)
{