* archive.c (_bfd_look_for_bfd_in_cache): Move declaration of

has_table to the start of the function.
This commit is contained in:
Mark Kettenis
2005-03-10 21:26:53 +00:00
parent 5b93de64c0
commit a2633f4e94
2 changed files with 6 additions and 1 deletions

View 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> 2005-03-10 Ben Elliston <bje@au.ibm.com>
* archive.c: Include hashtab.h. * archive.c: Include hashtab.h.

View File

@ -247,10 +247,10 @@ bfd_set_archive_head (bfd *output_archive, bfd *new_head)
bfd * bfd *
_bfd_look_for_bfd_in_cache (bfd *arch_bfd, file_ptr filepos) _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; struct ar_cache m;
m.ptr = filepos; m.ptr = filepos;
htab_t hash_table = bfd_ardata (arch_bfd)->cache;
if (hash_table) if (hash_table)
{ {
struct ar_cache *entry = (struct ar_cache *) htab_find (hash_table, &m); struct ar_cache *entry = (struct ar_cache *) htab_find (hash_table, &m);