This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/5] make _bfd_delete_bfd static


This one isn't really a fix.  I just noticed that _bfd_delete_bfd is
only used in opncls.c, so I made it static.

	* opncls.c (_bfd_delete_bfd): Now static.
	* libbfd-in.h (_bfd_delete_bfd): Don't declare.
	* libbfd.h: Rebuild.
---
 bfd/libbfd-in.h |    2 --
 bfd/libbfd.h    |    2 --
 bfd/opncls.c    |    2 +-
 3 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 882ccaa..8cdb1c6 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -162,8 +162,6 @@ extern bfd *_bfd_generic_get_elt_at_index
   (bfd *, symindex);
 bfd * _bfd_new_bfd
   (void);
-void _bfd_delete_bfd
-  (bfd *);
 bfd_boolean _bfd_free_cached_info
   (bfd *);
 
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 898e6fc..a1e544f 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -167,8 +167,6 @@ extern bfd *_bfd_generic_get_elt_at_index
   (bfd *, symindex);
 bfd * _bfd_new_bfd
   (void);
-void _bfd_delete_bfd
-  (bfd *);
 bfd_boolean _bfd_free_cached_info
   (bfd *);
 
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 734717a..29f8b79 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -127,7 +127,7 @@ _bfd_new_bfd_contained_in (bfd *obfd)
 
 /* Delete a BFD.  */
 
-void
+static void
 _bfd_delete_bfd (bfd *abfd)
 {
   _bfd_delete_archive_data (abfd);
-- 
1.7.7.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]