Make return type of inbound_frame_set_settings_entry void

This commit is contained in:
Tatsuhiro Tsujikawa 2014-06-10 21:32:20 +09:00
parent 2878e1e258
commit cfcecca751
1 changed files with 2 additions and 6 deletions

View File

@ -4123,10 +4123,8 @@ static size_t inbound_frame_buf_read(nghttp2_inbound_frame *iframe,
/* /*
* Unpacks SETTINGS entry in iframe->sbuf. * Unpacks SETTINGS entry in iframe->sbuf.
*
* This function returns 0 if it succeeds, or -1.
*/ */
static int inbound_frame_set_settings_entry(nghttp2_inbound_frame *iframe) static void inbound_frame_set_settings_entry(nghttp2_inbound_frame *iframe)
{ {
nghttp2_settings_entry iv; nghttp2_settings_entry iv;
size_t i; size_t i;
@ -4142,7 +4140,7 @@ static int inbound_frame_set_settings_entry(nghttp2_inbound_frame *iframe)
default: default:
DEBUGF(fprintf(stderr, "recv: ignore unknown settings id=0x%02x\n", DEBUGF(fprintf(stderr, "recv: ignore unknown settings id=0x%02x\n",
iv.settings_id)); iv.settings_id));
return -1; return;
} }
for(i = 0; i < iframe->niv; ++i) { for(i = 0; i < iframe->niv; ++i) {
@ -4155,8 +4153,6 @@ static int inbound_frame_set_settings_entry(nghttp2_inbound_frame *iframe)
if(i == iframe->niv) { if(i == iframe->niv) {
iframe->iv[iframe->niv++] = iv; iframe->iv[iframe->niv++] = iv;
} }
return 0;
} }
/* /*