This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[rfa] Use bfd_cache_close, instead of bfd->iostream
- From: Andrew Cagney <cagney at gnu dot org>
- To: binutils at sources dot redhat dot com
- Date: Sat, 14 Feb 2004 18:32:25 -0500
- Subject: [rfa] Use bfd_cache_close, instead of bfd->iostream
Hello,
The subject line says it all. Ok?
Andrew
2004-02-14 Andrew Cagney <cagney@redhat.com>
* ar.c (remove_output): Use bfd_cache_close.
* arsup.c (ar_end): Ditto.
Index: ar.c
===================================================================
RCS file: /cvs/src/src/binutils/ar.c,v
retrieving revision 1.32
diff -u -r1.32 ar.c
--- ar.c 13 Nov 2003 16:01:52 -0000 1.32
+++ ar.c 14 Feb 2004 23:30:09 -0000
@@ -324,8 +324,8 @@
{
if (output_filename != NULL)
{
- if (output_bfd != NULL && output_bfd->iostream != NULL)
- fclose ((FILE *) (output_bfd->iostream));
+ if (output_bfd != NULL)
+ bfd_cache_close (output_bfd);
if (output_file != NULL)
fclose (output_file);
unlink (output_filename);
Index: arsup.c
===================================================================
RCS file: /cvs/src/src/binutils/arsup.c,v
retrieving revision 1.11
diff -u -r1.11 arsup.c
--- arsup.c 27 Oct 2003 13:20:32 -0000 1.11
+++ arsup.c 14 Feb 2004 23:30:09 -0000
@@ -433,7 +433,7 @@
{
if (obfd)
{
- fclose ((FILE *)(obfd->iostream));
+ bfd_cache_close (obfd);
unlink (bfd_get_filename (obfd));
}
}