From 00c80a15c09c168d44b4d4560f301f8cdd3f77ee Mon Sep 17 00:00:00 2001 From: Wenfeng Liu Date: Tue, 23 Aug 2016 13:40:14 +0000 Subject: [PATCH] lib: Make emit_header() return void since it always succeed. --- lib/nghttp2_hd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index f8dba5c0..275c966c 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -768,14 +768,12 @@ static size_t entry_room(size_t namelen, size_t valuelen) { return NGHTTP2_HD_ENTRY_OVERHEAD + namelen + valuelen; } -static int emit_header(nghttp2_hd_nv *nv_out, nghttp2_hd_nv *nv) { +static void emit_header(nghttp2_hd_nv *nv_out, nghttp2_hd_nv *nv) { DEBUGF(fprintf(stderr, "inflatehd: header emission: %s: %s\n", nv->name->base, nv->value->base)); /* ent->ref may be 0. This happens if the encoder emits literal block larger than header table capacity with indexing. */ *nv_out = *nv; - - return 0; } static size_t count_encoded_length(size_t n, size_t prefix) {