From d3aff959354bb71f78f0f2077a3c1827452d24b3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 27 Sep 2010 17:41:36 +0000 Subject: * bcache.c (expand_hash_table): Use hash_function, not hash. --- gdb/bcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/bcache.c') diff --git a/gdb/bcache.c b/gdb/bcache.c index 653d6fb..e6ca06c 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; -- cgit v1.1