* archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
authorMark Kettenis <kettenis@gnu.org>
Thu, 10 Mar 2005 21:26:53 +0000 (21:26 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 10 Mar 2005 21:26:53 +0000 (21:26 +0000)
has_table to the start of the function.

bfd/ChangeLog
bfd/archive.c

index f394852..57321af 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-10  Mark Kettenis  <kettenis@gnu.org>
+
+       * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
+       has_table to the start of the function.
+
 2005-03-10  Ben Elliston  <bje@au.ibm.com>
 
        * archive.c: Include hashtab.h.
index 2fedd29..7980845 100644 (file)
@@ -247,10 +247,10 @@ bfd_set_archive_head (bfd *output_archive, bfd *new_head)
 bfd *
 _bfd_look_for_bfd_in_cache (bfd *arch_bfd, file_ptr filepos)
 {
+  htab_t hash_table = bfd_ardata (arch_bfd)->cache;
   struct ar_cache m;
   m.ptr = filepos;
 
-  htab_t hash_table = bfd_ardata (arch_bfd)->cache;
   if (hash_table)
     {
       struct ar_cache *entry = (struct ar_cache *) htab_find (hash_table, &m);