From 7b6b841a241839d1ec74f6d3988d5541e179f68a Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Mon, 6 Nov 2023 16:43:57 +0100 Subject: [PATCH] this is header file that might be included by C++, naming nested struct is difficult --- include/quicly/cc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/quicly/cc.h b/include/quicly/cc.h index f3472a49..fad1fb13 100644 --- a/include/quicly/cc.h +++ b/include/quicly/cc.h @@ -125,7 +125,7 @@ typedef struct st_quicly_cc_t { /** * jumpstart state */ - struct st_quicly_cc_jumpstart_t { + struct { /** * first packet number in jumpstart */ @@ -261,7 +261,9 @@ inline void quicly_cc__update_ecn_episodes(quicly_cc_t *cc, uint32_t lost_bytes, inline void quicly_cc_jumpstart_reset(quicly_cc_t *cc) { - cc->jumpstart = (struct st_quicly_cc_jumpstart_t){.enter_pn = UINT64_MAX, .exit_pn = UINT64_MAX}; + cc->jumpstart.enter_pn = UINT64_MAX; + cc->jumpstart.exit_pn = UINT64_MAX; + cc->jumpstart.bytes_acked = 0; } inline void quicly_cc_jumpstart_enter(quicly_cc_t *cc, uint32_t jump_cwnd, uint64_t next_pn)