Commit 057db656 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Rewrite session_append_inflight_settings

parent c42296ac
...@@ -6682,17 +6682,12 @@ int nghttp2_session_add_window_update(nghttp2_session *session, uint8_t flags, ...@@ -6682,17 +6682,12 @@ int nghttp2_session_add_window_update(nghttp2_session *session, uint8_t flags,
static void static void
session_append_inflight_settings(nghttp2_session *session, session_append_inflight_settings(nghttp2_session *session,
nghttp2_inflight_settings *settings) { nghttp2_inflight_settings *settings) {
nghttp2_inflight_settings *i; nghttp2_inflight_settings **i;
if (!session->inflight_settings_head) { for (i = &session->inflight_settings_head; *i; i = &(*i)->next)
session->inflight_settings_head = settings;
return;
}
for (i = session->inflight_settings_head; i->next; i = i->next)
; ;
i->next = settings; *i = settings;
} }
int nghttp2_session_add_settings(nghttp2_session *session, uint8_t flags, int nghttp2_session_add_settings(nghttp2_session *session, uint8_t flags,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment