aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.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/archive.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/archive.c')
-rw-r--r--bfd/archive.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 747745a..a46372c 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -562,7 +562,7 @@ bfd_slurp_bsd_armap (abfd)
but fail for any other size... */
if (bfd_read ((PTR)nextname, 1, 16, abfd) == 16) {
/* The archive has at least 16 bytes in it */
- bfd_seek (abfd, -16L, SEEK_CUR);
+ bfd_seek (abfd, (file_ptr) -16, SEEK_CUR);
/* This should be using RANLIBMAG, but at least it can be grepped for
in this comment. */
@@ -637,7 +637,7 @@ bfd_slurp_coff_armap (abfd)
bfd_vma (*swap)();
result = bfd_read ((PTR)&nextname, 1, 1, abfd);
- bfd_seek (abfd, -1L, SEEK_CUR);
+ bfd_seek (abfd, (file_ptr) -1, SEEK_CUR);
if (result != 1 || nextname != '/') {
/* Actually I think this is an error for a COFF archive */
@@ -755,7 +755,7 @@ _bfd_slurp_extended_name_table (abfd)
we probably don't want to return true. */
if (bfd_read ((PTR)nextname, 1, 16, abfd) == 16) {
- bfd_seek (abfd, -16L, SEEK_CUR);
+ bfd_seek (abfd, (file_ptr) -16, SEEK_CUR);
if (strncmp (nextname, "ARFILENAMES/ ", 16) != 0 &&
strncmp (nextname, "// ", 16) != 0)
@@ -1172,7 +1172,7 @@ _bfd_write_archive_contents (arch)
if (!bfd_construct_extended_name_table (arch, &etable, &elength))
return false;
- bfd_seek (arch, 0, SEEK_SET);
+ bfd_seek (arch, (file_ptr) 0, SEEK_SET);
#ifdef GNU960
bfd_write (BFD_GNU960_ARMAG(arch), 1, SARMAG, arch);
#else
@@ -1212,7 +1212,7 @@ _bfd_write_archive_contents (arch)
bfd_error = system_call_error;
return false;
}
- if (bfd_seek (current, 0L, SEEK_SET) != 0L) goto syserr;
+ if (bfd_seek (current, (file_ptr) 0, SEEK_SET) != 0) goto syserr;
while (remaining)
{
unsigned int amt = DEFAULT_BUFFERSIZE;