From 3552e0eb232f13a75b912c200a2e832e5136e258 Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Sun, 5 May 2002 22:28:03 +0000 Subject: [PATCH] Fix compile break: mod_mem_cache.c: In function `cleanup_cache_mem': mod_mem_cache.c:251: too many arguments to function `cache_hash_first' make[4]: *** [mod_mem_cache.slo] Error 1 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94933 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/cache_hash.h | 6 ++---- modules/experimental/mod_mem_cache.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/experimental/cache_hash.h b/modules/experimental/cache_hash.h index b73181b6d6..0774ff1131 100644 --- a/modules/experimental/cache_hash.h +++ b/modules/experimental/cache_hash.h @@ -130,20 +130,18 @@ CACHE_DECLARE(void *) cache_hash_get(cache_hash_t *ht, const void *key, /** * Start iterating over the entries in a hash table. - * @param p The pool to allocate the cache_hash_index_t iterator. If this - * pool is NULL, then an internal, non-thread-safe iterator is used. * @param ht The hash table * @example */ /** *
  * 
- *     int sum_values(apr_pool_t *p, cache_hash_t *ht)
+ *     int sum_values(cache_hash_t *ht)
  *     {
  *         cache_hash_index_t *hi;
  * 	   void *val;
  * 	   int sum = 0;
- * 	   for (hi = cache_hash_first(p, ht); hi; hi = cache_hash_next(hi)) {
+ * 	   for (hi = cache_hash_first(ht); hi; hi = cache_hash_next(hi)) {
  * 	       cache_hash_this(hi, NULL, NULL, &val);
  * 	       sum += *(int *)val;
  * 	   }
diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c
index 4429d95495..3290db6b58 100644
--- a/modules/experimental/mod_mem_cache.c
+++ b/modules/experimental/mod_mem_cache.c
@@ -248,7 +248,7 @@ static apr_status_t cleanup_cache_mem(void *sconfv)
         apr_thread_mutex_lock(sconf->lock);
     }
     /* Iterate over the cache and clean up each entry */
-    while ((hi = cache_hash_first(NULL, co->cacheht)) != NULL) {
+    while ((hi = cache_hash_first(co->cacheht)) != NULL) {
         /* Fetch the object from the cache */
         cache_hash_this(hi, NULL, NULL, (void **)&obj);
         if (obj) {
-- 
2.40.0