From: Mark Kettenis Date: Thu, 10 Mar 2005 21:26:53 +0000 (+0000) Subject: * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2633f4e944662a4cba6cc2742c717c99e73ea92;p=binutils-gdb.git * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of has_table to the start of the function. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f394852279c..57321afe7ef 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-03-10 Mark Kettenis + + * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of + has_table to the start of the function. + 2005-03-10 Ben Elliston * archive.c: Include hashtab.h. diff --git a/bfd/archive.c b/bfd/archive.c index 2fedd29acbf..79808459b15 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);