hash: fix safe_hasher const typo
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 2 Sep 2010 19:51:40 +0000 (12:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 2 Sep 2010 19:51:59 +0000 (12:51 -0700)
* lib/hash.c (safe_hasher): Result is pointer, not pointer to
const; otherwise, there is a type error later.

ChangeLog
lib/hash.c

index 93c6b1c7cdc05f29bbca804377272f9c9197f869..72642d1759747bdc406ae0602d8623e28712dd2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       hash: fix safe_hasher const typo
+       * lib/hash.c (safe_hasher): Result is pointer, not pointer to
+       const; otherwise, there is a type error later.
+
 2010-09-02  Jim Meyering  <meyering@redhat.com>
 
        test-update-copyright.sh: require perl 5.8.0
index a4a242057b9dbcb872d70112cb6a17ff15523bdc..732586e86d544dde4b36fda2aa9841100bc7503d 100644 (file)
@@ -245,7 +245,7 @@ hash_print_statistics (const Hash_table *table, FILE *stream)
 
 /* Hash KEY and return a pointer to the selected bucket.
    If TABLE->hasher misbehaves, abort.  */
-static struct hash_entry const *
+static struct hash_entry *
 safe_hasher (const Hash_table *table, const void *key)
 {
   size_t n = table->hasher (key, table->n_buckets);