public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 2/5] make _bfd_delete_bfd static
@ 2012-08-03 14:55 Tom Tromey
  2012-08-03 16:19 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2012-08-03 14:55 UTC (permalink / raw)
  To: Binutils Development

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/5] make _bfd_delete_bfd static
  2012-08-03 14:55 [PATCH 2/5] make _bfd_delete_bfd static Tom Tromey
@ 2012-08-03 16:19 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2012-08-03 16:19 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Binutils Development

On Fri, Aug 03, 2012 at 08:54:10AM -0600, Tom Tromey wrote:
> 	* opncls.c (_bfd_delete_bfd): Now static.
> 	* libbfd-in.h (_bfd_delete_bfd): Don't declare.
> 	* libbfd.h: Rebuild.

OK.  (obvious rule would apply)

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-03 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-03 14:55 [PATCH 2/5] make _bfd_delete_bfd static Tom Tromey
2012-08-03 16:19 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).