]> granicus.if.org Git - apache/commitdiff
Fix compile break:
authorCliff Woolley <jwoolley@apache.org>
Sun, 5 May 2002 22:28:03 +0000 (22:28 +0000)
committerCliff Woolley <jwoolley@apache.org>
Sun, 5 May 2002 22:28:03 +0000 (22:28 +0000)
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
modules/experimental/mod_mem_cache.c

index b73181b6d6181e0c7cec1228ebbe9f553a569618..0774ff11311a0bb145706d768fe3e3f4bd177480 100644 (file)
@@ -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
  */
 /**
  * <PRE>
  * 
- *     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;
  *        }
index 4429d95495487fdd97a69bde1ab06cc160d936bf..3290db6b58301d5bb3d71187ed19825a2b1d33aa 100644 (file)
@@ -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) {