File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1071,7 +1071,7 @@ static void tcp_rto_cb(void *arg);
10711071static void tcp_ctrl_rto_start (struct tsocket * t , uint64_t now );
10721072static void tcp_ctrl_rto_stop (struct tsocket * t );
10731073static int tcp_ctrl_state_needs_rto (const struct tsocket * t );
1074- static int tcp_has_pending_unsent_payload (const struct tsocket * t );
1074+ static int tcp_has_pending_unsent_payload (struct tsocket * t );
10751075
10761076#ifdef ETHERNET
10771077struct PACKED arp_packet {
@@ -2181,7 +2181,7 @@ static int tcp_ctrl_state_needs_rto(const struct tsocket *t)
21812181 * teardown control traffic remains. */
21822182 if ((t -> sock .tcp .state == TCP_FIN_WAIT_1 ) &&
21832183 (t -> sock .tcp .bytes_in_flight == 0 ) &&
2184- !tcp_has_pending_unsent_payload (t ))
2184+ !tcp_has_pending_unsent_payload (( struct tsocket * ) t ))
21852185 return 1 ;
21862186 return 0 ;
21872187}
@@ -2219,7 +2219,7 @@ static void tcp_ctrl_rto_start(struct tsocket *t, uint64_t now)
22192219 t -> sock .tcp .ctrl_rto_active = 1 ;
22202220}
22212221
2222- static int tcp_has_pending_unsent_payload (const struct tsocket * t )
2222+ static int tcp_has_pending_unsent_payload (struct tsocket * t )
22232223{
22242224 struct pkt_desc * desc ;
22252225 uint32_t guard = 0 ;
You can’t perform that action at this time.
0 commit comments