From e6756387b0d9903b1e95b1fa740c985b4220a6a2 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 16 Jan 2017 10:55:56 +0800 Subject: [PATCH] tcp_out: Fix comment for last_unsent->oversize_left and tcp_pcb.unsent_oversize Both last_unsent->unsent_oversize and tcp_pcb.unsent_oversized fields are not exist, fix the comments. Signed-off-by: Axel Lin (cherry picked from commit 30aedfc3f7ae633b8ef481e8db7db4508172171c) --- src/core/tcp_out.c | 2 +- src/include/lwip/priv/tcp_priv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index fccf06fb..a2860c6c 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -461,7 +461,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) */ #if TCP_OVERSIZE #if TCP_OVERSIZE_DBGCHECK - /* check that pcb->unsent_oversize matches last_unsent->unsent_oversize */ + /* check that pcb->unsent_oversize matches last_unsent->oversize_left */ LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)", pcb->unsent_oversize == last_unsent->oversize_left); #endif /* TCP_OVERSIZE_DBGCHECK */ diff --git a/src/include/lwip/priv/tcp_priv.h b/src/include/lwip/priv/tcp_priv.h index f68a856a..03ebcb63 100644 --- a/src/include/lwip/priv/tcp_priv.h +++ b/src/include/lwip/priv/tcp_priv.h @@ -249,7 +249,7 @@ struct tcp_seg { #if TCP_OVERSIZE_DBGCHECK u16_t oversize_left; /* Extra bytes available at the end of the last pbuf in unsent (used for asserting vs. - tcp_pcb.unsent_oversized only) */ + tcp_pcb.unsent_oversize only) */ #endif /* TCP_OVERSIZE_DBGCHECK */ #if TCP_CHECKSUM_ON_COPY u16_t chksum;