diff options
author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2023-06-13 11:47:14 -0400 |
---|---|---|
committer | fxlb <devel.fx.lebail@orange.fr> | 2023-06-25 17:15:12 +0000 |
commit | b6ba74a607afe92f60d5dac58486e3eba0234279 (patch) | |
tree | 103dabb5dc3af22c8e70eb589e6150b9e85d2883 /sockutils.c | |
parent | a6a998858e522b158e2d8a27302f14a4d6bf214e (diff) |
Fix spelling
* amount
* anymore
* authentication
* availability
* bracket
* captured
* casted
* communications
* compliant
* configurable
* cumulate
* deinitialize
* descriptors
* didn't
* disassembler
* disassociate
* distributions
* divvy
* doing
* entries
* everything
* explicitly
* explosion
* expression
* extracting
* failed
* family
* find
* github
* global
* implementations
* incorrectly
* intel
* interlocked
* justifying
* know
* launched
* libraries
* malloced
* mask
* maximum
* network
* nonexistent
* number
* occurred
* optimizer
* overflow
* overwrite lower
* packet
* packetfilter
* packets
* parse hosts
* payload
* phase
* programmers
* promiscuous
* protocol
* receiving
* redefinition
* sampling
* savefile
* schwartz
* should
* snapshot
* something
* specifies
* straightforward
* stream
* subdir
* support
* surrogate
* suse
* system is
* test with
* than
* those
* unmaintained
* valid
* way
* western
* wireshark
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Diffstat (limited to 'sockutils.c')
-rw-r--r-- | sockutils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sockutils.c b/sockutils.c index 6752f296..a1bfa1b5 100644 --- a/sockutils.c +++ b/sockutils.c @@ -199,7 +199,7 @@ void sock_geterrmsg(char *errbuf, size_t errbuflen, const char *fmt, ...) * These are sorted by how likely they are to be the "underlying" problem, * so that lower-rated errors for a given address in a given family * should not overwrite higher-rated errors for another address in that - * family, and higher-rated errors should overwrit elower-rated errors. + * family, and higher-rated errors should overwrite lower-rated errors. */ typedef enum { SOCK_CONNERR, /* connection error */ @@ -230,7 +230,7 @@ static sock_errtype sock_geterrtype(int errcode) * and we're trying the wrong address family. * * These overwrite all other errors, as they indicate - * that, even if somethng else went wrong in another + * that, even if something else went wrong in another * attempt, this probably wouldn't work even if the * other problems were fixed. */ @@ -881,7 +881,7 @@ int sock_close(SOCKET sock, char *errbuf, int errbuflen) */ if (shutdown(sock, SHUT_WR)) { - sock_geterrmsg(errbuf, errbuflen, "shutdown() feiled"); + sock_geterrmsg(errbuf, errbuflen, "shutdown() failed"); /* close the socket anyway */ closesocket(sock); return -1; @@ -1043,7 +1043,7 @@ get_gai_errstring(char *errbuf, int errbuflen, const char *prefix, int err, } /* - * \brief Checks that the address, port and flags given are valids and it returns an 'addrinfo' structure. + * \brief Checks that the address, port and flags given are valid and it returns an 'addrinfo' structure. * * This function basically calls the getaddrinfo() calls, and it performs a set of sanity checks * to control that everything is fine (e.g. a TCP socket cannot have a mcast address, and such). @@ -1327,7 +1327,7 @@ int sock_send(SOCKET sock, SSL *ssl _U_NOSSL_, const char *buffer, size_t size, * \param totsize: total size of the buffer into which data is being copied. * * \param checkonly: '1' if we do not want to copy data into the buffer and we - * want just do a buffer ovreflow control, '0' if data has to be copied as well. + * want just do a buffer overflow control, '0' if data has to be copied as well. * * \param errbuf: a pointer to an user-allocated buffer that will contain the complete * error message. This buffer has to be at least 'errbuflen' in length. @@ -1848,7 +1848,7 @@ int sock_check_hostlist(char *hostlist, const char *sep, struct sockaddr_storage * i.e. an sockaddr_storage structure. * * The two structures do not need to be sockaddr_storage; you can have both 'sockaddr_in' and - * sockaddr_in6, properly acsted in order to be compliant to the function interface. + * sockaddr_in6, properly casted in order to be compliant to the function interface. * * This function will return '0' if the two addresses matches, '-1' if not. * |