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; } /*