Skip to content

Commit 1aa509c

Browse files
committed
Fixed compiler warnings
1 parent db8edbd commit 1aa509c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/wolfip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ static void tcp_rto_cb(void *arg);
10711071
static void tcp_ctrl_rto_start(struct tsocket *t, uint64_t now);
10721072
static void tcp_ctrl_rto_stop(struct tsocket *t);
10731073
static 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
10771077
struct 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;

0 commit comments

Comments
 (0)