* bcache.c (expand_hash_table): Use hash_function, not hash.
authorTom Tromey <tromey@redhat.com>
Mon, 27 Sep 2010 17:41:36 +0000 (17:41 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 27 Sep 2010 17:41:36 +0000 (17:41 +0000)
gdb/ChangeLog
gdb/bcache.c

index eb668c24ab6cb0326940cdfbf5c0347d099f90a4..dad1e65086b390e4f22b7abe9e11976cae0f2729 100644 (file)
@@ -1,3 +1,7 @@
+2010-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * bcache.c (expand_hash_table): Use hash_function, not hash.
+
 2010-09-27  Tom Tromey  <tromey@redhat.com>
 
        * gdb_wchar.h: Change minimum libiconv to 0x108.
index 653d6fb311a4b7ca692bef49f16645c9b8f8fb3a..e6ca06c8d5806c77023dc5271f7ec0f038f783c7 100644 (file)
@@ -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;
This page took 0.041753 seconds and 4 git commands to generate.