git: 09703627879d - main - libifconfig: Correct some typos in source code comments

From: Gordon Bergling <gbe_at_FreeBSD.org>
Date: Sun, 04 Sep 2022 10:54:09 UTC
The branch main has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=09703627879df49648e065c5e64db7ab807263d1

commit 09703627879df49648e065c5e64db7ab807263d1
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-09-04 10:53:58 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-09-04 10:53:58 +0000

    libifconfig: Correct some typos in source code comments
    
    - s/occured/occurred/
    - s/the the/the/
    
    MFC after:      3 days
---
 lib/libifconfig/libifconfig.h          | 6 +++---
 lib/libifconfig/libifconfig_internal.h | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/libifconfig/libifconfig.h b/lib/libifconfig/libifconfig.h
index e1cd6d1821a5..c8bbb5edd3bb 100644
--- a/lib/libifconfig/libifconfig.h
+++ b/lib/libifconfig/libifconfig.h
@@ -129,7 +129,7 @@ ifconfig_handle_t *ifconfig_open(void);
  */
 void ifconfig_close(ifconfig_handle_t *h);
 
-/** Identifies what kind of error occured. */
+/** Identifies what kind of error occurred. */
 ifconfig_errtype ifconfig_err_errtype(ifconfig_handle_t *h);
 
 /** Retrieves the errno associated with the error, if any. */
@@ -285,7 +285,7 @@ int ifconfig_carp_get_info(ifconfig_handle_t *h, const char *name,
 /** Retrieve additional information about an inet address
  * @param h	An open ifconfig state object
  * @param name	The interface name
- * @param ifa	Pointer to the the address structure of interest
+ * @param ifa	Pointer to the address structure of interest
  * @param addr	Return argument.  It will be filled with additional information
  *              about the address.
  * @return	0 on success, nonzero on failure.
@@ -296,7 +296,7 @@ int ifconfig_inet_get_addrinfo(ifconfig_handle_t *h,
 /** Retrieve additional information about an inet6 address
  * @param h	An open ifconfig state object
  * @param name	The interface name
- * @param ifa	Pointer to the the address structure of interest
+ * @param ifa	Pointer to the address structure of interest
  * @param addr	Return argument.  It will be filled with additional information
  *              about the address.
  * @return	0 on success, nonzero on failure.
diff --git a/lib/libifconfig/libifconfig_internal.h b/lib/libifconfig/libifconfig_internal.h
index d9803a05c675..77add7574fa8 100644
--- a/lib/libifconfig/libifconfig_internal.h
+++ b/lib/libifconfig/libifconfig_internal.h
@@ -38,13 +38,13 @@ struct errstate {
 	ifconfig_errtype errtype;
 
 	/**
-	 * The error occured in this ioctl() request.
+	 * The error occurred in this ioctl() request.
 	 * Populated if errtype = IOCTL
 	 */
 	unsigned long ioctl_request;
 
 	/**
-	 * The value of the global errno variable when the error occured.
+	 * The value of the global errno variable when the error occurred.
 	 */
 	int errcode;
 };