src/core: Fix speling issues

Found by codespell
This commit is contained in:
Erik Ekman 2023-10-14 18:16:49 +02:00
parent 8c1190143c
commit 5e3268cf3e
10 changed files with 11 additions and 10 deletions

View File

@ -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+="$@"

View File

@ -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

View File

@ -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 :

View File

@ -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

View File

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

View File

@ -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) {

View File

@ -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

View File

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

View File

@ -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

View File

@ -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
*/
/*