From a78dbb25c5e434f4e5cf45a7eebcb0ff07eb2d93 Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Mon, 6 Nov 2017 09:35:24 -0600 Subject: [PATCH] docs: small clean ups for last couple of commits: * Fix typos in LWIP_NO_CTYPE_H comment block * Update comment around caller of tcp_kill_prio() --- src/core/tcp.c | 4 ++-- src/include/lwip/arch.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index 47c22292..1394f09a 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -1752,8 +1752,8 @@ tcp_alloc(u8_t prio) /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); if (pcb == NULL) { - /* Try killing oldest active connection with the same or lower priority than the new one. */ - LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio same/lower than %d\n", prio)); + /* Try killing oldest active connection with lower priority than the new one. */ + LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio)); tcp_kill_prio(prio); /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); diff --git a/src/include/lwip/arch.h b/src/include/lwip/arch.h index 3738863c..0d5db73e 100644 --- a/src/include/lwip/arch.h +++ b/src/include/lwip/arch.h @@ -204,7 +204,7 @@ typedef int ssize_t; #endif /* SSIZE_MAX */ /** Define this to 1 in arch/cc.h of your port if your compiler does not provide - * the cytype.h header. If ctype.h is available, a few few character functions + * the ctype.h header. If ctype.h is available, a few character functions * are mapped to the appropriate functions (lwip_islower, lwip_isdigit...), if * not, a private implementation is provided. */