}
status = apr_thread_mutex_lock(m->lock);
if (APR_SUCCESS == status) {
- update_ctx ctx = { cb, cb_ctx, 0 };
+ update_ctx ctx;
+
+ ctx.cb = cb;
+ ctx.cb_ctx = cb_ctx;
+ ctx.streams_updated = 0;
+
status = APR_EAGAIN;
h2_io_set_iter(m->stream_ios, update_window, &ctx);
{
size_t n;
h2_ngheader *h;
- nvctx_t ctx = { NULL, 1, strlen(status) + 1, 0, NULL, pool };
+ nvctx_t ctx;
+
+ ctx.nv = NULL;
+ ctx.nvlen = 1;
+ ctx.nvstrlen = strlen(status) + 1;
+ ctx.offset = 0;
+ ctx.strbuf = NULL;
+ ctx.pool = pool;
apr_table_do(count_header, &ctx, header, NULL);
AP_DEBUG_ASSERT(session);
if (!h2_stream_set_is_empty(session->streams)
&& session->mplx && !session->aborted) {
- resume_ctx ctx = { session, 0 };
+ resume_ctx ctx;
+
+ ctx.session = session;
+ ctx.resume_count = 0;
+
/* Resume all streams where we have data in the out queue and
* which had been suspended before. */
h2_stream_set_iter(session->streams, resume_on_data, &ctx);