httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1777492 - in /httpd/httpd/branches/2.2.x/modules: cache/mod_cache.c dav/main/mod_dav.c ssl/ssl_engine_kernel.c
Date Thu, 05 Jan 2017 18:55:24 GMT
Author: covener
Date: Thu Jan  5 18:55:24 2017
New Revision: 1777492

URL: http://svn.apache.org/viewvc?rev=1777492&view=rev
Log:
Fix trivial compiler warnings

2.2.x patch: http://home.apache.org/~ylavic/patches/httpd-2.2.x-fix_trivial_warnings.patch

Reviewed by: ylavic, covener, wrowe


Modified:
    httpd/httpd/branches/2.2.x/modules/cache/mod_cache.c
    httpd/httpd/branches/2.2.x/modules/dav/main/mod_dav.c
    httpd/httpd/branches/2.2.x/modules/ssl/ssl_engine_kernel.c

Modified: httpd/httpd/branches/2.2.x/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/cache/mod_cache.c?rev=1777492&r1=1777491&r2=1777492&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/cache/mod_cache.c (original)
+++ httpd/httpd/branches/2.2.x/modules/cache/mod_cache.c Thu Jan  5 18:55:24 2017
@@ -691,7 +691,6 @@ static int cache_save_filter(ap_filter_t
          * buckets and use their length to calculate the size
          */
         int all_buckets_here=0;
-        int unresolved_length = 0;
         size=0;
         for (e = APR_BRIGADE_FIRST(in);
              e != APR_BRIGADE_SENTINEL(in);
@@ -702,7 +701,6 @@ static int cache_save_filter(ap_filter_t
                 break;
             }
             if (APR_BUCKET_IS_FLUSH(e)) {
-                unresolved_length = 1;
                 continue;
             }
             if (e->length == (apr_size_t)-1) {

Modified: httpd/httpd/branches/2.2.x/modules/dav/main/mod_dav.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/dav/main/mod_dav.c?rev=1777492&r1=1777491&r2=1777492&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/dav/main/mod_dav.c (original)
+++ httpd/httpd/branches/2.2.x/modules/dav/main/mod_dav.c Thu Jan  5 18:55:24 2017
@@ -2473,7 +2473,6 @@ static int dav_method_mkcol(request_rec
     dav_error *err;
     dav_error *err2;
     int result;
-    dav_dir_conf *conf;
     dav_response *multi_status;
 
     /* handle the request body */
@@ -2482,9 +2481,6 @@ static int dav_method_mkcol(request_rec
         return result;
     }
 
-    conf = (dav_dir_conf *)ap_get_module_config(r->per_dir_config,
-                                                &dav_module);
-
     /* Ask repository module to resolve the resource */
     err = dav_get_resource(r, 0 /* label_allowed */, 0 /* use_checked_in */,
                            &resource);

Modified: httpd/httpd/branches/2.2.x/modules/ssl/ssl_engine_kernel.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/ssl/ssl_engine_kernel.c?rev=1777492&r1=1777491&r2=1777492&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/ssl/ssl_engine_kernel.c (original)
+++ httpd/httpd/branches/2.2.x/modules/ssl/ssl_engine_kernel.c Thu Jan  5 18:55:24 2017
@@ -1796,7 +1796,6 @@ void ssl_callback_DelSessionCacheEntry(S
                                        SSL_SESSION *session)
 {
     server_rec *s;
-    SSLSrvConfigRec *sc;
     unsigned char *id;
     unsigned int idlen;
 
@@ -1807,8 +1806,6 @@ void ssl_callback_DelSessionCacheEntry(S
         return; /* on server shutdown Apache is already gone */
     }
 
-    sc = mySrvConfig(s);
-
     /*
      * Remove the SSL_SESSION from the inter-process cache
      */



Mime
View raw message