git: bc73dd2a87c2 - stable/12 - libifconfig: Correct some typos in source code comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Sep 2022 07:56:02 UTC
The branch stable/12 has been updated by gbe (doc committer):
URL: https://cgit.FreeBSD.org/src/commit/?id=bc73dd2a87c2a990a654e73aa1ec10c13888e506
commit bc73dd2a87c2a990a654e73aa1ec10c13888e506
Author: Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-09-04 10:53:58 +0000
Commit: Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-09-07 07:54:47 +0000
libifconfig: Correct some typos in source code comments
- s/occured/occurred/
- s/the the/the/
(cherry picked from commit 09703627879df49648e065c5e64db7ab807263d1)
---
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 cd2929f315b4..cfbcb5f94056 100644
--- a/lib/libifconfig/libifconfig.h
+++ b/lib/libifconfig/libifconfig.h
@@ -125,7 +125,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. */
@@ -209,7 +209,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.
@@ -220,7 +220,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;
};