Fix typos and grammar errors in comments

- Fix header comment in ec_eoe.h referencing wrong source file (ec_foe.c -> ec_eoe.c)
- Fix redundant wording "Free memory allocated memory" -> "Free allocated memory" in oshw.c files
- Fix typo "lenghts" -> "lengths" in macosx/nicdrv.h
- Fix typo "incomming" -> "incoming" in rtems/nicdrv.c
- Fix double word "the the" -> "to the" in vxworks/nicdrv.c

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
lusipad
2026-01-31 03:29:06 +08:00
committed by Hans-Erik Floryd
parent e0fd251657
commit 791b782a59
12 changed files with 12 additions and 12 deletions

View File

@@ -71,7 +71,7 @@ ec_adaptert *oshw_find_adapters(void)
return ret;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/

View File

@@ -39,7 +39,7 @@ ec_adaptert *oshw_find_adapters(void)
return NULL;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/

View File

@@ -69,7 +69,7 @@ typedef struct
int tempinbufs;
/** transmit buffers */
ec_bufT txbuf[EC_MAXBUF];
/** transmit buffer lenghts */
/** transmit buffer lengths */
int txbuflength[EC_MAXBUF];
/** temporary tx buffer */
ec_bufT txbuf2;

View File

@@ -93,7 +93,7 @@ ec_adaptert *oshw_find_adapters(void)
return ret_adapter;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/

View File

@@ -205,7 +205,7 @@ int ecx_setupnic(ecx_portt *port, const char *ifname, int secondary)
return 0;
}
/* Listen only to incomming messages */
/* Listen only to incoming messages */
uint direction = BPF_D_IN;
if (ioctl(*bpf, BIOCSDIRECTION, &direction) == -1)
{

View File

@@ -93,7 +93,7 @@ ec_adaptert *oshw_find_adapters(void)
return ret_adapter;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/

View File

@@ -716,7 +716,7 @@ static int ecx_recvpkt(ecx_portt *port, uint8 idx, int stacknumber, M_BLK_ID *pM
* read frame with transmitted frame. Frames are received by separate receiver
* task tNet0 (default), tNet0 fetch what frame index and store a reference to the
* received frame in matching MsgQ. The stack user tasks fetch the frame
* reference and copies the frame the the RX buffer, when done it free
* reference and copies the frame to the RX buffer, when done it free
* the frame buffer allocated by the Mux.
*
* @param[in] port = port context struct

View File

@@ -50,7 +50,7 @@ ec_adaptert *oshw_find_adapters(void)
return ret_adapter;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/

View File

@@ -6,7 +6,7 @@
/** \file
* \brief
* Headerfile for ec_foe.c
* Headerfile for ec_eoe.c
*/
#ifndef _ec_eoe_

View File

@@ -92,7 +92,7 @@ ec_adaptert *oshw_find_adapters(void)
return ret_adapter;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/

View File

@@ -44,7 +44,7 @@ ec_adaptert *oshw_find_adapters(void)
return ret_adapter;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/

View File

@@ -96,7 +96,7 @@ ec_adaptert *oshw_find_adapters(void)
return ret_adapter;
}
/** Free memory allocated memory used by adapter collection.
/** Free allocated memory used by adapter collection.
* @param[in] adapter = First element in linked list of adapters
* EC_NOFRAME.
*/