aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-10-15 09:00:09 +0000
committerJohn Gilmore <gnu@cygnus>1992-10-15 09:00:09 +0000
commitf8e01940189dfd4a06f8818d4442ce6d39fd9539 (patch)
tree6100ef7299d0808978b22575fea4c1c4df1ea80d /bfd/elf.c
parentdac4929a6d43b500b573166e53a6706789c7cad1 (diff)
downloadgdb-f8e01940189dfd4a06f8818d4442ce6d39fd9539.zip
gdb-f8e01940189dfd4a06f8818d4442ce6d39fd9539.tar.gz
gdb-f8e01940189dfd4a06f8818d4442ce6d39fd9539.tar.bz2
* aout-adobe.c, aoutf1.h, archive.c, bout.c, coff-rs6000.c,
coffcode.h, elf.c, ieee.c, libaout.h, libbfd.c, oasys.c, sco-core.c: Lint: Second argument of bfd_seek is always file_ptr. Third argument is SEEK_SET or SEEK_CUR. Result is always 0 or -1.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 1c3fd09..7f3a430 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -947,7 +947,7 @@ DEFUN(elf_corefile_note, (abfd, hdr),
if (hdr -> p_filesz > 0
&& (buf = (char *) bfd_xmalloc (hdr -> p_filesz)) != NULL
- && bfd_seek (abfd, hdr -> p_offset, SEEK_SET) != -1L
+ && bfd_seek (abfd, hdr -> p_offset, SEEK_SET) != -1
&& bfd_read ((PTR) buf, hdr -> p_filesz, 1, abfd) == hdr -> p_filesz)
{
x_note_p = (Elf_External_Note *) buf;
@@ -1788,7 +1788,7 @@ DEFUN (elf_write_object_contents, (abfd), bfd *abfd)
/* swap the header before spitting it out... */
elf_swap_ehdr_out (abfd, i_ehdrp, &x_ehdr);
- bfd_seek (abfd, 0L, SEEK_SET);
+ bfd_seek (abfd, (file_ptr) 0, SEEK_SET);
bfd_write ((PTR) &x_ehdr, sizeof(x_ehdr), 1, abfd);
outbase += i_ehdrp->e_shentsize * i_ehdrp->e_shnum;
@@ -1828,7 +1828,7 @@ DEFUN (elf_write_object_contents, (abfd), bfd *abfd)
}
/* sample use of bfd:
- * bfd_seek (abfd, 0L, false);
+ * bfd_seek (abfd, (file_ptr) 0, SEEK_SET);
* bfd_write ((PTR) &exec_bytes, 1, EXEC_BYTES_SIZE, abfd);
* if (bfd_seek(abfd, scn_base, SEEK_SET) != 0)
* return false;