aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Bergling <gbe@FreeBSD.org>2022-09-04 10:53:58 +0000
committerGordon Bergling <gbe@FreeBSD.org>2022-09-04 10:53:58 +0000
commit09703627879df49648e065c5e64db7ab807263d1 (patch)
treeb5c9b514e87322f3953569d330b1a9686beed0ea
parentf0d4c2afd65f821b8983152848f4005239ff975a (diff)
libifconfig: Correct some typos in source code comments
- s/occured/occurred/ - s/the the/the/ MFC after: 3 days
-rw-r--r--lib/libifconfig/libifconfig.h6
-rw-r--r--lib/libifconfig/libifconfig_internal.h4
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;
};