mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
has_table to the start of the function.
This commit is contained in:
@ -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.
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user