From 0c7d48dedeee9f44786abb028b84a22e9d4c1b2e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 11 Aug 2016 11:33:09 +0900 Subject: [PATCH] Make result type of hd_inflate_commit_indexed void --- lib/nghttp2_hd.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index fe5c5f52..1e921f54 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -1677,16 +1677,14 @@ static ssize_t hd_inflate_read(nghttp2_hd_inflater *inflater, nghttp2_buf *buf, } /* - * Finalize indexed header representation reception. header is always - * emitted, |*nv_out| is filled with that value and 0 is returned. + * Finalize indexed header representation reception. The referenced + * header is always emitted, and |*nv_out| is filled with that value. */ -static int hd_inflate_commit_indexed(nghttp2_hd_inflater *inflater, - nghttp2_hd_nv *nv_out) { +static void hd_inflate_commit_indexed(nghttp2_hd_inflater *inflater, + nghttp2_hd_nv *nv_out) { nghttp2_hd_nv nv = nghttp2_hd_table_get(&inflater->ctx, inflater->index); emit_header(nv_out, &nv); - - return 0; } /*