From 2052575a3687d48d19ef79a9e7bfa1f764c388a0 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 3 Mar 2010 19:32:58 +0000 Subject: [PATCH] fix these warnings (and presumably a similar one in mod_socache_dc.c): MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit mod_socache_shmcb.c:625: warning: no previous prototype for ‘socache_shmcb_iterate’ mod_socache_dbm.c:505: warning: no previous prototype for ‘socache_dbm_iterate’ mod_socache_memcache.c:290: warning: no previous prototype for ‘socache_mc_iterate’ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@918655 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cache/mod_socache_dbm.c | 8 ++++---- modules/cache/mod_socache_dc.c | 8 ++++---- modules/cache/mod_socache_memcache.c | 8 ++++---- modules/cache/mod_socache_shmcb.c | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/cache/mod_socache_dbm.c b/modules/cache/mod_socache_dbm.c index 3e15d1cec5..1f8a04fd19 100644 --- a/modules/cache/mod_socache_dbm.c +++ b/modules/cache/mod_socache_dbm.c @@ -502,10 +502,10 @@ static void socache_dbm_status(ap_socache_instance_t *ctx, request_rec *r, return; } -apr_status_t socache_dbm_iterate(ap_socache_instance_t *instance, - server_rec *s, - ap_socache_iterator_t *iterator, - apr_pool_t *pool) +static apr_status_t socache_dbm_iterate(ap_socache_instance_t *instance, + server_rec *s, + ap_socache_iterator_t *iterator, + apr_pool_t *pool) { return APR_ENOTIMPL; } diff --git a/modules/cache/mod_socache_dc.c b/modules/cache/mod_socache_dc.c index 331b29ef9c..9b7edcce85 100644 --- a/modules/cache/mod_socache_dc.c +++ b/modules/cache/mod_socache_dc.c @@ -154,10 +154,10 @@ static void socache_dc_status(ap_socache_instance_t *ctx, request_rec *r, int fl " target: %s
", ctx->target); } -apr_status_t socache_dc_iterate(ap_socache_instance_t *instance, - server_rec *s, - ap_socache_iterator_t *iterator, - apr_pool_t *pool) +static apr_status_t socache_dc_iterate(ap_socache_instance_t *instance, + server_rec *s, + ap_socache_iterator_t *iterator, + apr_pool_t *pool) { return APR_ENOTIMPL; } diff --git a/modules/cache/mod_socache_memcache.c b/modules/cache/mod_socache_memcache.c index f51c7f6831..4f910be58f 100644 --- a/modules/cache/mod_socache_memcache.c +++ b/modules/cache/mod_socache_memcache.c @@ -287,10 +287,10 @@ static void socache_mc_status(ap_socache_instance_t *ctx, request_rec *r, int fl /* TODO: Make a mod_status handler. meh. */ } -apr_status_t socache_mc_iterate(ap_socache_instance_t *instance, - server_rec *s, - ap_socache_iterator_t *iterator, - apr_pool_t *pool) +static apr_status_t socache_mc_iterate(ap_socache_instance_t *instance, + server_rec *s, + ap_socache_iterator_t *iterator, + apr_pool_t *pool) { return APR_ENOTIMPL; } diff --git a/modules/cache/mod_socache_shmcb.c b/modules/cache/mod_socache_shmcb.c index 301b95965a..5b8506e94f 100644 --- a/modules/cache/mod_socache_shmcb.c +++ b/modules/cache/mod_socache_shmcb.c @@ -622,10 +622,10 @@ static void socache_shmcb_status(ap_socache_instance_t *ctx, ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "leaving shmcb_status"); } -apr_status_t socache_shmcb_iterate(ap_socache_instance_t *instance, - server_rec *s, - ap_socache_iterator_t *iterator, - apr_pool_t *pool) +static apr_status_t socache_shmcb_iterate(ap_socache_instance_t *instance, + server_rec *s, + ap_socache_iterator_t *iterator, + apr_pool_t *pool) { SHMCBHeader *header = instance->header; unsigned int loop; -- 2.40.0