diff options
author | John Gilmore <gnu@cygnus> | 1992-10-15 09:00:09 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-10-15 09:00:09 +0000 |
commit | f8e01940189dfd4a06f8818d4442ce6d39fd9539 (patch) | |
tree | 6100ef7299d0808978b22575fea4c1c4df1ea80d /bfd/libaout.h | |
parent | dac4929a6d43b500b573166e53a6706789c7cad1 (diff) | |
download | gdb-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/libaout.h')
-rw-r--r-- | bfd/libaout.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/libaout.h b/bfd/libaout.h index c37ae7e..52b47ed 100644 --- a/bfd/libaout.h +++ b/bfd/libaout.h @@ -290,21 +290,20 @@ PROTO(char *, aout_stab_name, (int code)); obj_reloc_entry_size (abfd)); \ NAME(aout,swap_exec_header_out) (abfd, execp, &exec_bytes); \ \ - bfd_seek (abfd, 0L, false); \ + bfd_seek (abfd, (file_ptr) 0, SEEK_SET); \ bfd_write ((PTR) &exec_bytes, 1, EXEC_BYTES_SIZE, abfd); \ /* Now write out reloc info, followed by syms and strings */ \ \ if (bfd_get_symcount (abfd) != 0) \ { \ - bfd_seek (abfd, \ - (long)(N_SYMOFF(*execp)), false); \ + bfd_seek (abfd, (file_ptr)(N_SYMOFF(*execp)), SEEK_SET); \ \ NAME(aout,write_syms)(abfd); \ \ - bfd_seek (abfd, (long)(N_TRELOFF(*execp)), false); \ + bfd_seek (abfd, (file_ptr)(N_TRELOFF(*execp)), SEEK_SET); \ \ if (!NAME(aout,squirt_out_relocs) (abfd, obj_textsec (abfd))) return false; \ - bfd_seek (abfd, (long)(N_DRELOFF(*execp)), false); \ + bfd_seek (abfd, (file_ptr)(N_DRELOFF(*execp)), SEEK_SET); \ \ if (!NAME(aout,squirt_out_relocs)(abfd, obj_datasec (abfd))) return false; \ } \ |