jwoolley 02/05/05 17:58:47
Modified: modules/experimental cache_hash.c cache_hash.h
Log:
cache_hash_set was dropping the const qualifier from its return value
Revision Changes Path
1.2 +4 -4 httpd-2.0/modules/experimental/cache_hash.c
Index: cache_hash.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/experimental/cache_hash.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -u -r1.1 -r1.2
--- cache_hash.c 4 May 2002 19:54:39 -0000 1.1
+++ cache_hash.c 6 May 2002 00:58:47 -0000 1.2
@@ -285,10 +285,10 @@
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;
1.3 +2 -2 httpd-2.0/modules/experimental/cache_hash.h
Index: cache_hash.h
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/experimental/cache_hash.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -u -r1.2 -r1.3
--- cache_hash.h 5 May 2002 22:28:03 -0000 1.2
+++ cache_hash.h 6 May 2002 00:58:47 -0000 1.3
@@ -115,8 +115,8 @@
* @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.
|