httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r960073 - /httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c
Date Fri, 02 Jul 2010 18:00:27 GMT
Author: wrowe
Date: Fri Jul  2 18:00:26 2010
New Revision: 960073

URL: http://svn.apache.org/viewvc?rev=960073&view=rev
Log:
Clean shmcb iterator call syntax and return value

Modified:
    httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c

Modified: httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c?rev=960073&r1=960072&r2=960073&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c Fri Jul  2 18:00:26 2010
@@ -972,8 +972,8 @@ static apr_status_t shmcb_subcache_itera
                                          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_itera
         pos = SHMCB_CYCLIC_INCREMENT(pos, 1, header->index_num);
     }
 
-    return -1; /* failure */
+    return APR_SUCCESS;
 }
 
 static const ap_socache_provider_t socache_shmcb = {



Mime
View raw message