aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-03 01:39:10 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-03 01:39:10 +0000
commit0c5dc23cc9f4f7a488c0b7df518e319148a2b103 (patch)
tree017e2e7c59da268ad28cb278e129435c3d4fe9fc /binutils/ar.c
parent0c62139f9079833dbd943d093672250228b9d761 (diff)
downloadgdb-0c5dc23cc9f4f7a488c0b7df518e319148a2b103.zip
gdb-0c5dc23cc9f4f7a488c0b7df518e319148a2b103.tar.gz
gdb-0c5dc23cc9f4f7a488c0b7df518e319148a2b103.tar.bz2
* nlmconv.c (main): Use bfd_get_flavour instead of struct member.
* ar.c (print_contents, extract_file), size.c (print_berkeley_format): Use bfd_get_filename and bfd_my_archive instead of dereferencing the structs directly.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 4afcff4..96f4213 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -528,7 +528,8 @@ print_contents (abfd)
nread = bfd_read (cbuf, 1, tocopy, abfd); /* oops -- broke
abstraction! */
if (nread != tocopy)
- fatal ("%s is not a valid archive", abfd->my_archive->filename);
+ fatal ("%s is not a valid archive",
+ bfd_get_filename (bfd_my_archive (abfd)));
fwrite (cbuf, 1, nread, stdout);
ncopied += tocopy;
}
@@ -583,7 +584,8 @@ extract_file (abfd)
nread = bfd_read (cbuf, 1, tocopy, abfd);
if (nread != tocopy)
- fatal ("%s is not a valid archive", abfd->my_archive->filename);
+ fatal ("%s is not a valid archive",
+ bfd_get_filename (bfd_my_archive (abfd)));
/* See comment above; this saves disk arm motion */
if (!ostream)