summaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-12-11 15:42:38 +0000
committerTristan Gingold <gingold@adacore.com>2009-12-11 15:42:38 +0000
commit1e377ec1a79107819dea245f601cd2def8e98e09 (patch)
tree6c6ae18768ff3caf4caf5c441f50a47627a269cf /bfd/cache.c
parent5413b5486ba77949122a8bfd6067d31626e330f3 (diff)
downloadbinutils-redhat-1e377ec1a79107819dea245f601cd2def8e98e09.tar.gz
2009-12-11 Tristan Gingold <gingold@adacore.com>
* som.c (bfd_som_set_subsection_attributes) (bfd_section_from_som_symbol, som_reloc_queue_fix): Fix shadowed variable warnings. * cache.c (close_one): Likewise.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r--bfd/cache.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/bfd/cache.c b/bfd/cache.c
index cf1869d0ed..2239c28aac 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -144,33 +144,33 @@ bfd_cache_delete (bfd *abfd)
static bfd_boolean
close_one (void)
{
- register bfd *kill;
+ register bfd *to_kill;
if (bfd_last_cache == NULL)
- kill = NULL;
+ to_kill = NULL;
else
{
- for (kill = bfd_last_cache->lru_prev;
- ! kill->cacheable;
- kill = kill->lru_prev)
+ for (to_kill = bfd_last_cache->lru_prev;
+ ! to_kill->cacheable;
+ to_kill = to_kill->lru_prev)
{
- if (kill == bfd_last_cache)
+ if (to_kill == bfd_last_cache)
{
- kill = NULL;
+ to_kill = NULL;
break;
}
}
}
- if (kill == NULL)
+ if (to_kill == NULL)
{
/* There are no open cacheable BFD's. */
return TRUE;
}
- kill->where = real_ftell ((FILE *) kill->iostream);
+ to_kill->where = real_ftell ((FILE *) to_kill->iostream);
- return bfd_cache_delete (kill);
+ return bfd_cache_delete (to_kill);
}
/* Check to see if the required BFD is the same as the last one