From e4d5bdf696fa6978a3ccb5f0a92f8c00f2852f6e Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Mon, 6 May 2002 00:58:47 +0000 Subject: [PATCH] cache_hash_set was dropping the const qualifier from its return value git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94935 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/cache_hash.c | 8 ++++---- modules/experimental/cache_hash.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/experimental/cache_hash.c b/modules/experimental/cache_hash.c index 7142c1bb3e..fe10d57519 100644 --- a/modules/experimental/cache_hash.c +++ b/modules/experimental/cache_hash.c @@ -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; diff --git a/modules/experimental/cache_hash.h b/modules/experimental/cache_hash.h index 0774ff1131..6ed39b440d 100644 --- a/modules/experimental/cache_hash.h +++ b/modules/experimental/cache_hash.h @@ -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. -- 2.40.0