]> granicus.if.org Git - apache/commitdiff
* Silence compiler warnings about unused variables.
authorRuediger Pluem <rpluem@apache.org>
Thu, 9 Jul 2009 06:07:36 +0000 (06:07 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 9 Jul 2009 06:07:36 +0000 (06:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@792407 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartmonitor.c
modules/proxy/balancers/mod_lbmethod_heartbeat.c

index ca0b957de456adcc0435144a49c9b3988d81a9c1..0b42baa33d30937dbfb405737160cd2a1f816ab9 100644 (file)
@@ -514,8 +514,6 @@ static int hm_handler(request_rec *r)
     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 @@ static int hm_handler(request_rec *r)
     ap_set_content_length(r, 2);
     ap_rprintf(r, "OK");
     ap_rflush(r);
-    
+
     return OK;
 }
 
@@ -644,10 +642,6 @@ static const char *cmd_hm_listen(cmd_parms *cmd,
 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) {
index 8303336ffe220ce42f1d6b00f3ce18ceb719f2c0..a04e5aaa71f29c8f4a0941a5ae7eb815cc8903ad 100644 (file)
@@ -374,9 +374,7 @@ static int lb_hb_init(apr_pool_t *p, apr_pool_t *plog,
     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 */