From 29dc941ab0bcd889568d52ba2dea9087e131a219 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 26 Feb 2016 13:53:51 +0000 Subject: [PATCH] fixing compile errors+warnings in gcc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732481 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_proxy_session.c | 4 +--- modules/http2/h2_session.c | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/http2/h2_proxy_session.c b/modules/http2/h2_proxy_session.c index 598de3e393..c65cdbdc3d 100644 --- a/modules/http2/h2_proxy_session.c +++ b/modules/http2/h2_proxy_session.c @@ -13,6 +13,7 @@ * limitations under the License. */ +#include #include #include @@ -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]; diff --git a/modules/http2/h2_session.c b/modules/http2/h2_session.c index 0be64b8cd7..4019bd4d35 100644 --- a/modules/http2/h2_session.c +++ b/modules/http2/h2_session.c @@ -14,6 +14,7 @@ */ #include +#include #include #include #include -- 2.40.0