mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-23 08:37:02 +08:00
Minor fix (warnings on unused args, wrong type, cast u32_t to u16_t...)
This commit is contained in:
@@ -1120,7 +1120,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
||||
next = cseg->next;
|
||||
if (TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) {
|
||||
/* We need to trim the incoming segment. */
|
||||
cseg->len = next->tcphdr->seqno - seqno;
|
||||
cseg->len = (u16_t)(next->tcphdr->seqno - seqno);
|
||||
pbuf_realloc(cseg->p, cseg->len);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user