From 791b782a59ab759bea41a5e56dccb214837e8097 Mon Sep 17 00:00:00 2001 From: lusipad Date: Sat, 31 Jan 2026 03:29:06 +0800 Subject: [PATCH] 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 --- contrib/oshw/erika/oshw.c | 2 +- contrib/oshw/intime/oshw.c | 2 +- contrib/oshw/macosx/nicdrv.h | 2 +- contrib/oshw/macosx/oshw.c | 2 +- contrib/oshw/rtems/nicdrv.c | 2 +- contrib/oshw/rtems/oshw.c | 2 +- contrib/oshw/vxworks/nicdrv.c | 2 +- contrib/oshw/vxworks/oshw.c | 2 +- include/soem/ec_eoe.h | 2 +- oshw/linux/oshw.c | 2 +- oshw/rtk/oshw.c | 2 +- oshw/win32/oshw.c | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/contrib/oshw/erika/oshw.c b/contrib/oshw/erika/oshw.c index 848b58d..fbdff66 100644 --- a/contrib/oshw/erika/oshw.c +++ b/contrib/oshw/erika/oshw.c @@ -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. */ diff --git a/contrib/oshw/intime/oshw.c b/contrib/oshw/intime/oshw.c index 0a11910..665e70d 100644 --- a/contrib/oshw/intime/oshw.c +++ b/contrib/oshw/intime/oshw.c @@ -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. */ diff --git a/contrib/oshw/macosx/nicdrv.h b/contrib/oshw/macosx/nicdrv.h index 9234469..95c5ce8 100644 --- a/contrib/oshw/macosx/nicdrv.h +++ b/contrib/oshw/macosx/nicdrv.h @@ -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; diff --git a/contrib/oshw/macosx/oshw.c b/contrib/oshw/macosx/oshw.c index 95697e6..c391606 100644 --- a/contrib/oshw/macosx/oshw.c +++ b/contrib/oshw/macosx/oshw.c @@ -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. */ diff --git a/contrib/oshw/rtems/nicdrv.c b/contrib/oshw/rtems/nicdrv.c index 026ed5e..6078613 100644 --- a/contrib/oshw/rtems/nicdrv.c +++ b/contrib/oshw/rtems/nicdrv.c @@ -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) { diff --git a/contrib/oshw/rtems/oshw.c b/contrib/oshw/rtems/oshw.c index c864e35..daa5c74 100644 --- a/contrib/oshw/rtems/oshw.c +++ b/contrib/oshw/rtems/oshw.c @@ -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. */ diff --git a/contrib/oshw/vxworks/nicdrv.c b/contrib/oshw/vxworks/nicdrv.c index affa612..ff73512 100644 --- a/contrib/oshw/vxworks/nicdrv.c +++ b/contrib/oshw/vxworks/nicdrv.c @@ -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 diff --git a/contrib/oshw/vxworks/oshw.c b/contrib/oshw/vxworks/oshw.c index be6b614..b14daa7 100644 --- a/contrib/oshw/vxworks/oshw.c +++ b/contrib/oshw/vxworks/oshw.c @@ -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. */ diff --git a/include/soem/ec_eoe.h b/include/soem/ec_eoe.h index 3387319..27ca216 100644 --- a/include/soem/ec_eoe.h +++ b/include/soem/ec_eoe.h @@ -6,7 +6,7 @@ /** \file * \brief - * Headerfile for ec_foe.c + * Headerfile for ec_eoe.c */ #ifndef _ec_eoe_ diff --git a/oshw/linux/oshw.c b/oshw/linux/oshw.c index 4de050f..5c20058 100644 --- a/oshw/linux/oshw.c +++ b/oshw/linux/oshw.c @@ -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. */ diff --git a/oshw/rtk/oshw.c b/oshw/rtk/oshw.c index 9e6335b..064e23f 100644 --- a/oshw/rtk/oshw.c +++ b/oshw/rtk/oshw.c @@ -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. */ diff --git a/oshw/win32/oshw.c b/oshw/win32/oshw.c index cdbb113..3af29a4 100644 --- a/oshw/win32/oshw.c +++ b/oshw/win32/oshw.c @@ -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. */