Skip to content

Commit

Permalink
lib: Make emit_header() return void since it always succeed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenfeng Liu committed Aug 23, 2016
1 parent d9139fc commit 00c80a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/nghttp2_hd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 00c80a1

Please sign in to comment.