You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2022/08/17 16:09:13 UTC

svn commit: r1903499 - in /httpd/apreq/trunk/module/t/c-modules: apreq_output_filter_test/mod_apreq_output_filter_test.c apreq_upload_test/mod_apreq_upload_test.c

Author: ylavic
Date: Wed Aug 17 16:09:12 2022
New Revision: 1903499

URL: http://svn.apache.org/viewvc?rev=1903499&view=rev
Log:
module/t/c-modules: Fix warnings in test modules.


Modified:
    httpd/apreq/trunk/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c
    httpd/apreq/trunk/module/t/c-modules/apreq_upload_test/mod_apreq_upload_test.c

Modified: httpd/apreq/trunk/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c?rev=1903499&r1=1903498&r2=1903499&view=diff
==============================================================================
--- httpd/apreq/trunk/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c (original)
+++ httpd/apreq/trunk/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c Wed Aug 17 16:09:12 2022
@@ -35,8 +35,7 @@ extern module AP_MODULE_DECLARE_DATA apr
 
 static apr_status_t apreq_output_filter_test_init(ap_filter_t *f)
 {
-    apreq_handle_t *handle;
-    handle = apreq_handle_apache2(f->r);
+    (void)apreq_handle_apache2(f->r);
     return APR_SUCCESS;
 }
 

Modified: httpd/apreq/trunk/module/t/c-modules/apreq_upload_test/mod_apreq_upload_test.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/module/t/c-modules/apreq_upload_test/mod_apreq_upload_test.c?rev=1903499&r1=1903498&r2=1903499&view=diff
==============================================================================
--- httpd/apreq/trunk/module/t/c-modules/apreq_upload_test/mod_apreq_upload_test.c (original)
+++ httpd/apreq/trunk/module/t/c-modules/apreq_upload_test/mod_apreq_upload_test.c Wed Aug 17 16:09:12 2022
@@ -62,12 +62,10 @@ static int apreq_upload_test_handler(req
       ap_rputs("not an upload field", r);
     }
     else {
-      apr_table_t *info;      /* upload headers */
       apr_bucket_brigade *bb; /* upload contents */
       apr_bucket *e;
       apr_size_t total = 0;
 
-      info = param->info;
       bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);
       apreq_brigade_copy(bb, param->upload);
 
@@ -89,7 +87,7 @@ static int apreq_upload_test_handler(req
         apr_bucket_delete(e);
       }
 
-      ap_rprintf(r, "%d", total);
+      ap_rprintf(r, "%ld", (unsigned long)total);
     }
 
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS,