]> granicus.if.org Git - apache/commitdiff
Eliminating some advanced conversion and shadow declaration compiler warnings.
authorStefan Eissing <icing@apache.org>
Wed, 10 Oct 2018 12:02:34 +0000 (12:02 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 10 Oct 2018 12:02:34 +0000 (12:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1843430 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_mplx.c
modules/http2/h2_ngn_shed.c
modules/http2/h2_proxy_session.c

index 0fae117b4fe450a545af86135173f1d5867894ea..15ca108cd549a369100bfc2c100202607f48f472 100644 (file)
@@ -983,7 +983,7 @@ static apr_status_t unschedule_slow_tasks(h2_mplx *m)
     }
     
     if ((m->tasks_active - h2_ihash_count(m->sredo)) > m->limit_active) {
-        h2_stream *stream = get_timed_out_busy_stream(m);
+        stream = get_timed_out_busy_stream(m);
         if (stream) {
             /* Too many busy workers, unable to cancel enough streams
              * and with a busy, timed out stream, we tell the client
index a9a234437fc8e92ebd58f1199404ba8671f7cc04..8b532711d7f532385fc48b7d66dc8495795bc518 100644 (file)
@@ -311,7 +311,7 @@ apr_status_t h2_ngn_shed_pull_request(h2_ngn_shed *shed,
     }
     
     if (1) {
-        h2_ngn_entry *entry = H2_REQ_ENTRIES_FIRST(&ngn->entries);
+        entry = H2_REQ_ENTRIES_FIRST(&ngn->entries);
         ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, shed->c, APLOGNO(03399)
                       "h2_ngn_shed(%ld): pull task, nothing, first task %s", 
                       shed->c->id, entry->task->id);
index 996bc659e929faf0128e6db110186571cecd1b60..e6e0efeddf35d4143762ab491f9a5166ad241fff 100644 (file)
@@ -1423,7 +1423,7 @@ run_loop:
                 ap_log_cerror(APLOG_MARK, APLOG_TRACE3, status, session->c, 
                               APLOGNO(03365)
                               "h2_proxy_session(%s): WAIT read, timeout=%fms", 
-                              session->id, (float)session->wait_timeout/1000.0);
+                              session->id, session->wait_timeout/1000.0);
                 if (status == APR_SUCCESS) {
                     have_read = 1;
                     dispatch_event(session, H2_PROXYS_EV_DATA_READ, 0, NULL);