From: Tom Tromey Date: Mon, 27 Sep 2010 17:41:36 +0000 (+0000) Subject: * bcache.c (expand_hash_table): Use hash_function, not hash. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3aff959354bb71f78f0f2077a3c1827452d24b3;p=binutils-gdb.git * bcache.c (expand_hash_table): Use hash_function, not hash. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eb668c24ab6..dad1e65086b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-09-27 Tom Tromey + + * bcache.c (expand_hash_table): Use hash_function, not hash. + 2010-09-27 Tom Tromey * gdb_wchar.h: Change minimum libiconv to 0x108. diff --git a/gdb/bcache.c b/gdb/bcache.c index 653d6fb311a..e6ca06c8d58 100644 --- a/gdb/bcache.c +++ b/gdb/bcache.c @@ -184,7 +184,8 @@ expand_hash_table (struct bcache *bcache) struct bstring **new_bucket; next = s->next; - new_bucket = &new_buckets[(hash (&s->d.data, s->length) + new_bucket = &new_buckets[(bcache->hash_function (&s->d.data, + s->length) % new_num_buckets)]; s->next = *new_bucket; *new_bucket = s;