From ad5d73738cb11d823e5b5c51a06d5f218efc3fed Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 29 Sep 2015 00:06:20 +0900 Subject: [PATCH] Return type of nghttp2_submit_trailer is int --- lib/nghttp2_submit.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/nghttp2_submit.c b/lib/nghttp2_submit.c index 14ec7666..763b4038 100644 --- a/lib/nghttp2_submit.c +++ b/lib/nghttp2_submit.c @@ -156,10 +156,11 @@ static int32_t submit_headers_shared_nva(nghttp2_session *session, attach_stream); } -int32_t nghttp2_submit_trailer(nghttp2_session *session, int32_t stream_id, - const nghttp2_nv *nva, size_t nvlen) { - return submit_headers_shared_nva(session, NGHTTP2_FLAG_END_STREAM, stream_id, - NULL, nva, nvlen, NULL, NULL, 0); +int nghttp2_submit_trailer(nghttp2_session *session, int32_t stream_id, + const nghttp2_nv *nva, size_t nvlen) { + return (int)submit_headers_shared_nva(session, NGHTTP2_FLAG_END_STREAM, + stream_id, NULL, nva, nvlen, NULL, NULL, + 0); } int32_t nghttp2_submit_headers(nghttp2_session *session, uint8_t flags,