libifconfig: Correct some typos in source code comments

- s/occured/occurred/
- s/the the/the/

MFC after:	3 days
This commit is contained in:
Gordon Bergling 2022-09-04 12:53:58 +02:00
parent f0d4c2afd6
commit 0970362787
2 changed files with 5 additions and 5 deletions

View file

@ -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.

View file

@ -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;
};