Minor fix (warnings on unused args, wrong type, cast u32_t to u16_t...)

This commit is contained in:
fbernon
2007-08-01 13:41:31 +00:00
parent 083134bc12
commit fdc4c25e67
2 changed files with 8 additions and 3 deletions

View File

@@ -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);
}
}