aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-10 21:26:53 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-10 21:26:53 +0000
commita2633f4e944662a4cba6cc2742c717c99e73ea92 (patch)
treefa8f0d5397e92698196ec7619a4c87516857135f /bfd/archive.c
parent5b93de64c03afbae53a69de91e9c4b34a61a1315 (diff)
downloadgdb-a2633f4e944662a4cba6cc2742c717c99e73ea92.zip
gdb-a2633f4e944662a4cba6cc2742c717c99e73ea92.tar.gz
gdb-a2633f4e944662a4cba6cc2742c717c99e73ea92.tar.bz2
* archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
has_table to the start of the function.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 2fedd29..7980845 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -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);