Mercurial > hg > octave-shane > gnulib-hg
changeset 13622:fcda011710d9
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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 02 Sep 2010 12:51:40 -0700 |
parents | a486be1eceb0 |
children | 86a433e3cc28 |
files | ChangeLog lib/hash.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- a/lib/hash.c +++ b/lib/hash.c @@ -245,7 +245,7 @@ /* 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);