]> granicus.if.org Git - apache/commitdiff
axe some unused variables and don't log an error code that
authorJeff Trawick <trawick@apache.org>
Fri, 13 Aug 2004 12:20:53 +0000 (12:20 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 13 Aug 2004 12:20:53 +0000 (12:20 +0000)
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

index e03637b8012f408337c076b0415c98542d77b96d..1bc52afc6fea0350dc7b78c2d8c5ee30aca476eb 100644 (file)
@@ -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);