You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2009/07/09 08:07:36 UTC

svn commit: r792407 - in /httpd/httpd/trunk/modules: cluster/mod_heartmonitor.c proxy/balancers/mod_lbmethod_heartbeat.c

Author: rpluem
Date: Thu Jul  9 06:07:36 2009
New Revision: 792407

URL: http://svn.apache.org/viewvc?rev=792407&view=rev
Log:
* Silence compiler warnings about unused variables.

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
    httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c?rev=792407&r1=792406&r2=792407&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c Thu Jul  9 06:07:36 2009
@@ -514,8 +514,6 @@
     apr_table_t *tbl;
     hm_server_t hmserver;
     char *ip;
-    hm_ctx_t *ctx = ap_get_module_config(r->server->module_config,
-                                         &heartmonitor_module);
 
     if (strcmp(r->handler, "hearthbeat")) {
         return DECLINED;
@@ -546,7 +544,7 @@
     ap_set_content_length(r, 2);
     ap_rprintf(r, "OK");
     ap_rflush(r);
-    
+
     return OK;
 }
 
@@ -644,10 +642,6 @@
 static const char *cmd_hm_maxworkers(cmd_parms *cmd,
                                   void *dconf, const char *data)
 {
-    apr_pool_t *p = cmd->pool;
-    hm_ctx_t *ctx =
-        (hm_ctx_t *) ap_get_module_config(cmd->server->module_config,
-                                          &heartmonitor_module);
     const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
 
     if (err != NULL) {

Modified: httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c?rev=792407&r1=792406&r2=792407&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c (original)
+++ httpd/httpd/trunk/modules/proxy/balancers/mod_lbmethod_heartbeat.c Thu Jul  9 06:07:36 2009
@@ -374,9 +374,7 @@
     void *data;
     apr_size_t size;
     int num;
-    lb_hb_ctx_t *ctx =
-    (lb_hb_ctx_t *) ap_get_module_config(s->module_config,
-                                         &lbmethod_heartbeat_module);
+
     apr_pool_userdata_get(&data, userdata_key, s->process->pool);
     if (!data) {
         /* first call do nothing */