From: Stefan Eissing Date: Thu, 20 Aug 2015 10:56:08 +0000 (+0000) Subject: fixed type of error parameter for invalid_frame_recv_cb callback X-Git-Tag: 2.5.0-alpha~2940 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39c1d93399b99d2a2fab89c0a17c2c71471829ea;p=apache fixed type of error parameter for invalid_frame_recv_cb callback git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696755 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_session.c b/modules/http2/h2_session.c index 741bf0821c..73faa65dc4 100644 --- a/modules/http2/h2_session.c +++ b/modules/http2/h2_session.c @@ -112,7 +112,7 @@ static ssize_t send_cb(nghttp2_session *ngh2, static int on_invalid_frame_recv_cb(nghttp2_session *ngh2, const nghttp2_frame *frame, - nghttp2_error error, void *userp) + int error, void *userp) { h2_session *session = (h2_session *)userp; (void)ngh2; @@ -126,7 +126,7 @@ static int on_invalid_frame_recv_cb(nghttp2_session *ngh2, frame_print(frame, buffer, sizeof(buffer)/sizeof(buffer[0])); ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, session->c, "h2_session: callback on_invalid_frame_recv error=%d %s", - (int)error, buffer); + error, buffer); } return 0; }