From: Paul Eggert Date: Thu, 2 Sep 2010 19:51:40 +0000 (-0700) Subject: hash: fix safe_hasher const typo X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fd6a77ff26f7b9ded8fcfa97c572423632854d4;p=pspp 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. --- diff --git a/ChangeLog b/ChangeLog index 93c6b1c7cd..72642d1759 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-02 Paul Eggert + + 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 test-update-copyright.sh: require perl 5.8.0 diff --git a/lib/hash.c b/lib/hash.c index a4a242057b..732586e86d 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);