httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1732953 - /httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c
Date Mon, 29 Feb 2016 21:45:24 GMT
Author: ylavic
Date: Mon Feb 29 21:45:24 2016
New Revision: 1732953

URL: http://svn.apache.org/viewvc?rev=1732953&view=rev
Log:
Avoid compiler (gcc-5.3.1) warning on unused variable.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c?rev=1732953&r1=1732952&r2=1732953&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c Mon Feb 29 21:45:24 2016
@@ -582,13 +582,12 @@ static int hc_read_headers(sctx_t *ctx,
             "%s", buffer);
     /* for the below, see ap_proxy_http_process_response() */
     if (apr_date_checkmask(buffer, "HTTP/#.# ###*")) {
-        int major, minor;
+        int major;
         char keepchar;
         int proxy_status = OK;
         const char *proxy_status_line = NULL;
 
         major = buffer[5] - '0';
-        minor = buffer[7] - '0';
         if ((major != 1) || (len >= sizeof(buffer)-1)) {
             return !OK;
         }



Mime
View raw message