Code cleanup

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-09 01:46:07 +09:00
parent a3ff4cb50b
commit 5dd6d86d66
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ int nghttp2_adjust_local_window_size(int32_t *local_window_size_ptr,
int32_t delta) int32_t delta)
{ {
if(delta > 0) { if(delta > 0) {
int32_t new_recv_window_size = *recv_window_size_ptr - delta; int32_t new_recv_window_size = *recv_window_size_ptr - delta;
if(new_recv_window_size < 0) { if(new_recv_window_size < 0) {
if(*local_window_size_ptr > if(*local_window_size_ptr >
NGHTTP2_MAX_WINDOW_SIZE + new_recv_window_size) { NGHTTP2_MAX_WINDOW_SIZE + new_recv_window_size) {

View File

@ -88,7 +88,7 @@ static int update_initial_window_size
new_window_size > NGHTTP2_MAX_WINDOW_SIZE) { new_window_size > NGHTTP2_MAX_WINDOW_SIZE) {
return -1; return -1;
} }
*window_size_ptr += new_initial_window_size - old_initial_window_size; *window_size_ptr = new_window_size;
return 0; return 0;
} }