]> granicus.if.org Git - apache/commitdiff
fixing compile errors+warnings in gcc
authorStefan Eissing <icing@apache.org>
Fri, 26 Feb 2016 13:53:51 +0000 (13:53 +0000)
committerStefan Eissing <icing@apache.org>
Fri, 26 Feb 2016 13:53:51 +0000 (13:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732481 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_proxy_session.c
modules/http2/h2_session.c

index 598de3e3931b8523528cc87550a609e72c622057..c65cdbdc3d614da88c21a0fffb945690a21a4772 100644 (file)
@@ -13,6 +13,7 @@
  * limitations under the License.
  */
 
+#include <stddef.h>
 #include <apr_strings.h>
 #include <nghttp2/nghttp2.h>
 
@@ -139,7 +140,6 @@ static int on_frame_recv(nghttp2_session *ngh2, const nghttp2_frame *frame,
                          void *user_data) 
 {
     h2_proxy_session *session = user_data;
-    h2_proxy_stream *stream;
     
     if (APLOGcdebug(session->c)) {
         char buffer[256];
@@ -152,7 +152,6 @@ static int on_frame_recv(nghttp2_session *ngh2, const nghttp2_frame *frame,
 
     switch (frame->hd.type) {
         case NGHTTP2_HEADERS:
-            stream = nghttp2_session_get_stream_user_data(ngh2, frame->hd.stream_id);
             break;
         case NGHTTP2_PUSH_PROMISE:
             break;
@@ -163,7 +162,6 @@ static int on_frame_recv(nghttp2_session *ngh2, const nghttp2_frame *frame,
             break;
         case NGHTTP2_GOAWAY:
             dispatch_event(session, H2_PROXYS_EV_REMOTE_GOAWAY, 0, NULL);
-            /* TODO: close handling */
             if (APLOGcinfo(session->c)) {
                 char buffer[256];
                 
index 0be64b8cd73e36459073a6192e8c5feaeca2831d..4019bd4d356fe70367117b7151dae37750a3215f 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <assert.h>
+#include <stddef.h>
 #include <apr_thread_cond.h>
 #include <apr_base64.h>
 #include <apr_strings.h>