Skip to content

Commit

Permalink
this is header file that might be included by C++, naming nested stru…
Browse files Browse the repository at this point in the history
…ct is difficult
  • Loading branch information
kazuho committed Nov 6, 2023
1 parent 1e2fe69 commit 7b6b841
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/quicly/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ typedef struct st_quicly_cc_t {
/**
* jumpstart state
*/
struct st_quicly_cc_jumpstart_t {
struct {
/**
* first packet number in jumpstart
*/
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7b6b841

Please sign in to comment.