bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] hash: fix safe_hasher const typo


From: Paul Eggert
Subject: [PATCH] hash: fix safe_hasher const typo
Date: Thu, 02 Sep 2010 12:53:39 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6

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  <address@hidden>
+
+       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  <address@hidden>
 
        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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]