diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-03-10 21:26:53 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-03-10 21:26:53 +0000 |
commit | a2633f4e944662a4cba6cc2742c717c99e73ea92 (patch) | |
tree | fa8f0d5397e92698196ec7619a4c87516857135f | |
parent | 5b93de64c03afbae53a69de91e9c4b34a61a1315 (diff) | |
download | gdb-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.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/archive.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f394852..57321af 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. 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); |