]> granicus.if.org Git - apache/commitdiff
cache_hash_set was dropping the const qualifier from its return value
authorCliff Woolley <jwoolley@apache.org>
Mon, 6 May 2002 00:58:47 +0000 (00:58 +0000)
committerCliff Woolley <jwoolley@apache.org>
Mon, 6 May 2002 00:58:47 +0000 (00:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94935 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/cache_hash.c
modules/experimental/cache_hash.h

index 7142c1bb3e78530131494d0a294c38556937105f..fe10d57519aba3a80474504b9a8bd92c68beb7af 100644 (file)
@@ -285,10 +285,10 @@ CACHE_DECLARE(void *) cache_hash_get(cache_hash_t *ht,
        return NULL;
 }
 
-CACHE_DECLARE(void*) cache_hash_set(cache_hash_t *ht,
-                                  const void *key,
-                                  apr_ssize_t klen,
-                                  const void *val)
+CACHE_DECLARE(const void *) cache_hash_set(cache_hash_t *ht,
+                                           const void *key,
+                                           apr_ssize_t klen,
+                                           const void *val)
 {
     cache_hash_entry_t **hep, *tmp;
     const void *tval;
index 0774ff11311a0bb145706d768fe3e3f4bd177480..6ed39b440d2bfe3b21ef4aa7b1971c99a7d90787 100644 (file)
@@ -115,8 +115,8 @@ CACHE_DECLARE(cache_hash_t *) cache_hash_make(apr_size_t size);
  * @remark If the value is NULL the hash entry is deleted.
  * @return The value of the deleted cache entry (so the caller can clean it up).
  */
-CACHE_DECLARE(void *) cache_hash_set(cache_hash_t *ht, const void *key,
-                                   apr_ssize_t klen, const void *val);
+CACHE_DECLARE(const void *) cache_hash_set(cache_hash_t *ht, const void *key,
+                                           apr_ssize_t klen, const void *val);
 
 /**
  * Look up the value associated with a key in a hash table.