Fix spelling errors

This commit is contained in:
Boris Pek
2019-01-14 22:03:07 +03:00
committed by Jan Vidar Krey
parent be1ad4f475
commit ef83b31cec
20 changed files with 32 additions and 32 deletions

View File

@@ -88,7 +88,7 @@ extern void net_con_close(struct net_connection* con);
*
* @return returns the number of bytes sent.
* 0 if no data is sent, and this function should be called again (EWOULDBLOCK/EINTR)
* <0 if an error occured, the negative number contains the error code.
* <0 if an error occurred, the negative number contains the error code.
*/
extern ssize_t net_con_send(struct net_connection* con, const void* buf, size_t len);
@@ -97,7 +97,7 @@ extern ssize_t net_con_send(struct net_connection* con, const void* buf, size_t
*
* @return returns the number of bytes sent.
* 0 if no data is sent, and this function should be called again (EWOULDBLOCK/EINTR)
* <0 if an error occured, the negative number contains the error code.
* <0 if an error occurred, the negative number contains the error code.
*/
extern ssize_t net_con_recv(struct net_connection* con, void* buf, size_t len);

View File

@@ -92,7 +92,7 @@ extern int ip_is_valid_ipv6(const char* address);
*
* @param text_addr is an ipaddress either ipv6 or ipv4.
* Special magic addresses called "any" and "loopback" exist,
* and will work accross IPv6/IPv4.
* and will work across IPv6/IPv4.
* @param port Fill the struct sockaddr* with the given port, can safely be ignored.
*/
extern int ip_convert_address(const char* text_address, int port, struct sockaddr* addr, socklen_t* addr_len);

View File

@@ -63,7 +63,7 @@ extern int net_monitor_count();
extern int net_monitor_capacity();
/**
* @return the last error code occured.
* @return the last error code occurred.
*
* NOTE: On Windows this is the last error code from the socket library, but
* on UNIX this is the errno variable that can be overwritten by any