From c92c35e7061ef1444fb08d73f8618d2dac543ee3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 15 Feb 2004 02:24:53 +0000 Subject: Use bfd_cache_close, instead of accessing bfd->iostream directly. --- binutils/ar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binutils/ar.c') diff --git a/binutils/ar.c b/binutils/ar.c index 5771427..b85d62e 100644 --- a/binutils/ar.c +++ b/binutils/ar.c @@ -324,8 +324,8 @@ remove_output (void) { 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); -- cgit v1.1