I installed this as an obvious fix for a recently-installed typo. * lib/hash.c (safe_hasher): Result is pointer, not pointer to const; otherwise, there is a type error later. --- ChangeLog | 6 ++++++ lib/hash.c | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 93c6b1c..72642d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-02 Paul Eggert <egg...@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 <meyer...@redhat.com> test-update-copyright.sh: require perl 5.8.0 diff --git a/lib/hash.c b/lib/hash.c index a4a2420..732586e 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -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); -- 1.7.2