From e882977b725a2fc974ba4b90e07a0d3a3fa2329e Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 13 Aug 2004 12:20:53 +0000 Subject: [PATCH] axe some unused variables and don't log an error code that hasn't been initialized git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104646 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index e03637b801..1bc52afc6f 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1408,7 +1408,6 @@ static apr_status_t connection_destructor(void *resource, void *params, apr_pool_t *pool) { proxy_conn_rec *conn = (proxy_conn_rec *)resource; - server_rec *s = (server_rec *)params; #if 0 if (conn->sock) @@ -1541,7 +1540,7 @@ PROXY_DECLARE(int) ap_proxy_acquire_connection(const char *proxy_function, ap_proxy_retry_worker(proxy_function, worker, s); if (!PROXY_WORKER_IS_USABLE(worker)) { - ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, + ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "proxy: %s: disabled connection for (%s)", proxy_function, worker->hostname); return HTTP_SERVICE_UNAVAILABLE; @@ -1583,8 +1582,6 @@ PROXY_DECLARE(int) ap_proxy_release_connection(const char *proxy_function, proxy_conn_rec *conn, server_rec *s) { - apr_status_t rv = APR_SUCCESS; - ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, "proxy: %s: has relesed connection for (%s)", proxy_function, conn->worker->hostname); -- 2.50.1