From 5e3268cf3ea16ed4907a55e167fcf7e2b544fb20 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sat, 14 Oct 2023 18:16:49 +0200 Subject: [PATCH] src/core: Fix speling issues Found by codespell --- codespell_check.sh | 1 + src/core/ipv4/acd.c | 2 +- src/core/ipv6/nd6.c | 4 ++-- src/core/mem.c | 2 +- src/core/netif.c | 2 +- src/core/tcp_in.c | 2 +- src/core/tcp_out.c | 2 +- src/core/udp.c | 2 +- src/include/lwip/arch.h | 2 +- src/include/lwip/snmp.h | 2 +- 10 files changed, 11 insertions(+), 10 deletions(-) diff --git a/codespell_check.sh b/codespell_check.sh index 89b25a1f..b3c2a169 100755 --- a/codespell_check.sh +++ b/codespell_check.sh @@ -41,6 +41,7 @@ CODESPELL_OPTS+=" --check-hidden" # "ofo => of", "WAN => WANT", "mut => must, mutt, moot" CODESPELL_OPTS+=" --ignore-words-list=nd,ans,tolen,ofo,wan,mut,clen,useg,clos " CODESPELL_OPTS+=" --ignore-words-list=devine,clinet,linz,garantie,explicite,numer " +CODESPELL_OPTS+=" --ignore-words-list=skool " # propagate all options to codespell -> pass "-w" to this script to write changes CODESPELL_OPTS+="$@" diff --git a/src/core/ipv4/acd.c b/src/core/ipv4/acd.c index 2c7d867c..92f3b5a3 100644 --- a/src/core/ipv4/acd.c +++ b/src/core/ipv4/acd.c @@ -143,7 +143,7 @@ acd_add(struct netif *netif, struct acd *acd, /** * @ingroup acd - * Remvoe ACD client from the client list + * Remove ACD client from the client list * * @param netif network interface from which to remove the acd client * @param acd acd module to be removed from the list diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index 55b5774f..f7b5f563 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -1176,7 +1176,7 @@ nd6_tmr(void) /** Send a neighbor solicitation message for a specific neighbor cache entry * - * @param entry the neightbor cache entry for which to send the message + * @param entry the neighbor cache entry for which to send the message * @param flags one of ND6_SEND_FLAG_* */ static void @@ -1707,7 +1707,7 @@ nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif) /* Look for valid routers. A reachable router is preferred. */ valid_router = -1; for (i = 0; i < LWIP_ND6_NUM_ROUTERS; i++) { - /* Is the router netif both set and apppropriate? */ + /* Is the router netif both set and appropriate? */ if (default_router_list[i].neighbor_entry != NULL) { router_netif = default_router_list[i].neighbor_entry->netif; if ((router_netif != NULL) && (netif != NULL ? netif == router_netif : diff --git a/src/core/mem.c b/src/core/mem.c index f94fb923..0aa34a26 100644 --- a/src/core/mem.c +++ b/src/core/mem.c @@ -792,7 +792,7 @@ mem_trim(void *rmem, mem_size_t new_size) /* else { next struct mem is used but size between mem and mem2 is not big enough to create another struct mem - -> don't do anyhting. + -> don't do anything. -> the remaining space stays unused since it is too small } */ #if MEM_OVERFLOW_CHECK diff --git a/src/core/netif.c b/src/core/netif.c index d3a06774..98e0553f 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -1409,7 +1409,7 @@ netif_ip6_addr_set_parts(struct netif *netif, s8_t addr_idx, u32_t i0, u32_t i1, if (ip6_addr_isvalid(netif_ip6_addr_state(netif, addr_idx))) { netif_do_ip_addr_changed(netif_ip_addr6(netif, addr_idx), &new_ipaddr); } - /* @todo: remove/readd mib2 ip6 entries? */ + /* @todo: remove/re-add mib2 ip6 entries? */ ip_addr_copy(netif->ip6_addr[addr_idx], new_ipaddr); diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 8eb58b97..1b17e40f 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -1564,7 +1564,7 @@ tcp_receive(struct tcp_pcb *pcb) recv_data = inseg.p; /* Since this pbuf now is the responsibility of the application, we delete our reference to it so that we won't - (mistakingly) deallocate it. */ + (mistakenly) deallocate it. */ inseg.p = NULL; } if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index fee3f5ad..cfcc55dd 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -301,7 +301,7 @@ tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum, /** Checks if tcp_write is allowed or not (checks state, snd_buf and snd_queuelen). * * @param pcb the tcp pcb to check for - * @param len length of data to send (checked agains snd_buf) + * @param len length of data to send (checked against snd_buf) * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise */ static err_t diff --git a/src/core/udp.c b/src/core/udp.c index 23c2be27..c787ae0a 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -988,7 +988,7 @@ udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { if (pcb != ipcb) { /* By default, we don't allow to bind to a port that any other udp - PCB is already bound to, unless *all* PCBs with that port have tha + PCB is already bound to, unless *all* PCBs with that port have the REUSEADDR flag set. */ #if SO_REUSE if (!ip_get_option(pcb, SOF_REUSEADDR) || diff --git a/src/include/lwip/arch.h b/src/include/lwip/arch.h index 596c1c9e..c659a80c 100644 --- a/src/include/lwip/arch.h +++ b/src/include/lwip/arch.h @@ -382,7 +382,7 @@ extern "C" { #define LWIP_PROVIDE_ERRNO #endif -/* Use a special, reproducable version of rand() for fuzz tests? */ +/* Use a special, reproducible version of rand() for fuzz tests? */ #ifdef LWIP_RAND_FOR_FUZZ #ifdef LWIP_RAND #undef LWIP_RAND diff --git a/src/include/lwip/snmp.h b/src/include/lwip/snmp.h index 8704d0b4..24315897 100644 --- a/src/include/lwip/snmp.h +++ b/src/include/lwip/snmp.h @@ -1,6 +1,6 @@ /** * @file - * SNMP support API for implementing netifs and statitics for MIB2 + * SNMP support API for implementing netifs and statistics for MIB2 */ /*