summaryrefslogtreecommitdiffstats
path: root/modules/cache/mod_socache_shmcb.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2010-07-02 20:00:26 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2010-07-02 20:00:26 +0200
commit661afad48c2d86cb7df88ae230d49c8cd0aa13e4 (patch)
tree2aad6035fd09940cfc130bc3c790ad26f5a3fe75 /modules/cache/mod_socache_shmcb.c
parentactually update the MMN and not only the comment (diff)
downloadapache2-661afad48c2d86cb7df88ae230d49c8cd0aa13e4.tar.xz
apache2-661afad48c2d86cb7df88ae230d49c8cd0aa13e4.zip
Clean shmcb iterator call syntax and return value
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@960073 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache/mod_socache_shmcb.c')
-rw-r--r--modules/cache/mod_socache_shmcb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cache/mod_socache_shmcb.c b/modules/cache/mod_socache_shmcb.c
index bba1e9a477..a56b8d9f78 100644
--- a/modules/cache/mod_socache_shmcb.c
+++ b/modules/cache/mod_socache_shmcb.c
@@ -972,8 +972,8 @@ static apr_status_t shmcb_subcache_iterate(ap_socache_instance_t *instance,
data_offset, dest_len);
dest[dest_len] = '\0';
- rv = (*iterator)(instance, s, userctx, id, idx->id_len,
- dest, dest_len, pool);
+ rv = iterator(instance, s, userctx, id, idx->id_len,
+ dest, dest_len, pool);
ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, s,
"shmcb entry iterated");
if (rv != APR_SUCCESS)
@@ -991,7 +991,7 @@ static apr_status_t shmcb_subcache_iterate(ap_socache_instance_t *instance,
pos = SHMCB_CYCLIC_INCREMENT(pos, 1, header->index_num);
}
- return -1; /* failure */
+ return APR_SUCCESS;
}
static const ap_socache_provider_t socache_shmcb = {