]> granicus.if.org Git - apache/commitdiff
fixed type of error parameter for invalid_frame_recv_cb callback
authorStefan Eissing <icing@apache.org>
Thu, 20 Aug 2015 10:56:08 +0000 (10:56 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 20 Aug 2015 10:56:08 +0000 (10:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696755 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_session.c

index 741bf0821c48a571a9d7ab796fb1cfea2669af8e..73faa65dc4026a9cf2e28c5d4ae21f78ebc61277 100644 (file)
@@ -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;
 }