libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit d629ada1a20018c1cbc7f7e0badf0f8eca9b0fd7
parent 8e4eba0e70690673643c0945bf6433f766a2bf65
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 26 Jun 2022 15:24:24 +0200

-fix typos

Diffstat:
Mconfigure.ac | 8++++----
Mdoc/chapters/websocket.inc | 4++--
Mdoc/libmicrohttpd.texi | 2+-
Mm4/mhd_check_cc_cflag.m4 | 2+-
Mm4/mhd_check_cc_ldflag.m4 | 2+-
Msrc/include/microhttpd_ws.h | 2+-
Msrc/microhttpd/digestauth.c | 12++++++------
Msrc/microhttpd_ws/test_websocket.c | 2+-
8 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -77,7 +77,7 @@ AC_MSG_CHECKING([for build type]) AC_ARG_ENABLE([build-type], [AS_HELP_STRING([[--enable-build-type=TYPE]], [enable build TYPE, a set of configuration parameters; individual settings ] - [(asserts, sanitizers, compiler and linker flags) can be overriden by ] + [(asserts, sanitizers, compiler and linker flags) can be overridden by ] [additional configure parameters (debug, debugger, neutral, release, release-compact, ] [release-hardened) [neutral]])], [], [enable_build_type=neutral]) @@ -86,7 +86,7 @@ AS_VAR_IF([enable_build_type], ["no"], [enable_build_type="neutral"]) AS_VAR_IF([enable_build_type], ["yes"], [AC_MSG_ERROR([[Missing TYPE for --enable-build-type=]])]) AS_CASE([${enable_build_type}], [debug], [AC_MSG_RESULT([debug. Defaults: enable asserts, sanitizers (if any supported), debug information, compiler optimisation for debugging])], - [debugger], [AC_MSG_RESULT([debuger. Defaults: enable asserts, disable sanitizers, debug information, no compiler optimisation])], + [debugger], [AC_MSG_RESULT([debugger. Defaults: enable asserts, disable sanitizers, debug information, no compiler optimisation])], [neutral], [AC_MSG_RESULT([neutral. Defaults: use only user-specified compiler and linker flags])], [release], [AC_MSG_RESULT([release. Defaults: disable asserts, enable compiler optimisations])], [release-compact], [AC_MSG_RESULT([release-compact. Defaults: disable asserts, enable compiler optimisations for size, enable compact code])], @@ -1537,7 +1537,7 @@ fd = epoll_create1(EPOLL_CLOEXEC);]])], AS_IF([test "x$mhd_cv_have_epoll_create1" = "xyes"],[ AC_DEFINE([[HAVE_EPOLL_CREATE1]], [[1]], [Define if you have epoll_create1 function.])])) -AC_CACHE_CHECK([for suported 'noreturn' keyword], [mhd_cv_decl_noreturn], +AC_CACHE_CHECK([for supported 'noreturn' keyword], [mhd_cv_decl_noreturn], [ mhd_cv_decl_noreturn="none" CFLAGS="${CFLAGS_ac} ${user_CFLAGS} ${errattr_CFLAGS}" @@ -3297,7 +3297,7 @@ AC_MSG_CHECKING([whether to enable run-time sanitizers]) AC_ARG_ENABLE([sanitizers], [AS_HELP_STRING([[--enable-sanitizers[=address,undefined,leak,user-poison]]], [enable run-time sanitizers, specify the list of types of sanitizers to enable, ] - [leave the list empty (or set to "auto") to enable all suppoted and available ] + [leave the list empty (or set to "auto") to enable all supported and available ] [sanitizers, or specify "auto-fallback" to use sanitizers even without ] [installed sanitizer run-time library])], [], [AS_CASE([${enable_build_type}],[debug], diff --git a/doc/chapters/websocket.inc b/doc/chapters/websocket.inc @@ -105,7 +105,7 @@ to @code{MHD_upgrade_action()}. Depending of the flags specified while calling @code{MHD_start_deamon()} our @code{upgrade_handler} is either executed in the same thread -as our deamon or in a thread specific for each connection. +as our daemon or in a thread specific for each connection. If it is executed in the same thread then @code{upgrade_handler} is a blocking call for our webserver and we should finish it as fast as possible (i. e. by creating a thread and @@ -436,7 +436,7 @@ to the websocket protocol. To use received payload data, you need to decode the frame data first. To send payload data, you need to encode it into frame data first. -@emph{libmicrohttpd_ws} provides serveral functions for encoding of +@emph{libmicrohttpd_ws} provides several functions for encoding of payload data and decoding of frame data: @itemize @bullet diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi @@ -4459,7 +4459,7 @@ should be @code{NULL}. This parameter is a pointer to a variable which contains the last check status of the UTF-8 sequence. It is required to continue a previous UTF-8 sequence check when fragmentation is used, because a UTF-8 sequence -could be splitted upon fragments. +could be split upon fragments. @code{enum MHD_WEBSOCKET_UTF8STEP} is used for this value. If you start a new fragment using diff --git a/m4/mhd_check_cc_cflag.m4 b/m4/mhd_check_cc_cflag.m4 @@ -9,7 +9,7 @@ # The check is performing by prepending FLAG-TO-TEST to CFLAGS, then # prepending value of VARIABLE-TO-PREPEND-CFLAGS (if any) to CFLAGS, and # then performing compile and link test. If test succeed without warnings, -# then the flag is considered to be suppoted. Otherwise, if compile and link +# then the flag is considered to be supported. Otherwise, if compile and link # without test flag can be done without any warning, the flag is considered # to be unsuppoted. # diff --git a/m4/mhd_check_cc_ldflag.m4 b/m4/mhd_check_cc_ldflag.m4 @@ -9,7 +9,7 @@ # The check is performing by prepending FLAG-TO-TEST to LDFLAGS, then # prepending value of VARIABLE-TO-PREPEND-LDFLAGS (if any) to LDFLAGS, and # then performing compile and link test. If test succeed without warnings, -# then the flag is considered to be suppoted. Otherwise, if compile and link +# then the flag is considered to be supported. Otherwise, if compile and link # without test flag can be done without any warning, the flag is considered # to be unsuppoted. # diff --git a/src/include/microhttpd_ws.h b/src/include/microhttpd_ws.h @@ -23,7 +23,7 @@ */ /* * *** WARNING! *** - * * The websockets interface is currenly in "experimental" stage. * + * * The websockets interface is currently in "experimental" stage. * * * It does not work on architectures with endianness different from * * * big endian and little endian and may have some portability issues.* * * API and ABI are not yet stable. * diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -651,7 +651,7 @@ get_rq_dauth_params (struct MHD_Connection *connection) /** * Extract timestamp from the given nonce. * @param nonce the nonce to check - * @param noncelen the lenght of the nonce, zero for autodetect + * @param noncelen the length of the nonce, zero for autodetect * @param[out] ptimestamp the pointer to store extracted timestamp * @return true if timestamp was extracted, * false if nonce does not have valid timestamp. @@ -709,7 +709,7 @@ fast_simple_hash (const uint8_t *data, * * @param arr_size the size of nonce_nc array * @param nonce the pointer that referenced a zero-terminated array of nonce - * @param noncelen the lenth of @a nonce, in characters + * @param noncelen the length of @a nonce, in characters * @return #MHD_YES if successful, #MHD_NO if invalid (or we have no NC array) */ static size_t @@ -1065,7 +1065,7 @@ is_slot_available (const struct MHD_NonceNc *const nn, * @param connection the MHD connection structure * @param timestamp the current timestamp * @param realm the string of characters that describes the realm of auth - * @param realm_len the lenght of the @a realm + * @param realm_len the length of the @a realm * @param da the digest algorithm to use * @param[out] nonce the pointer to a character array for the nonce to put in, * must provide NONCE_STD_LEN(da->digest_size)+1 bytes @@ -1377,7 +1377,7 @@ get_buffer_for_size (char tmp1[_MHD_STATIC_UNQ_BUFFER_SIZE], enum _MHD_GetUnqResult { _MHD_UNQ_OK = 0, /**< Got unquoted string */ - _MHD_UNQ_TOO_LARGE = -7, /**< The string is too large to unqoute */ + _MHD_UNQ_TOO_LARGE = -7, /**< The string is too large to unquote */ _MHD_UNQ_OUT_OF_MEM = 3 /**< Out of memory error */ }; @@ -1536,8 +1536,8 @@ digest_auth_check_all_inner (struct MHD_Connection *connection, uint64_t nci; char *qmark; const struct MHD_RqDAuth *params; - char tmp1[_MHD_STATIC_UNQ_BUFFER_SIZE]; /**< Temporal buffer in stack for unqouting */ - char **const ptmp2 = pbuf; /**< Temporal malloc'ed buffer for unqouting */ + char tmp1[_MHD_STATIC_UNQ_BUFFER_SIZE]; /**< Temporal buffer in stack for unquoting */ + char **const ptmp2 = pbuf; /**< Temporal malloc'ed buffer for unquoting */ size_t tmp2_size; /**< The size of @a tmp2 buffer */ struct _MHD_str_w_len unquoted; struct _MHD_mstr_w_len unq_copy; diff --git a/src/microhttpd_ws/test_websocket.c b/src/microhttpd_ws/test_websocket.c @@ -9838,7 +9838,7 @@ test_check_upgrade_header () (unsigned int) __LINE__); ++failed; } - /* Edge test (success): All allowed token characters plus /, then websocket keyowrd */ + /* Edge test (success): All allowed token characters plus /, then websocket keyword */ ret = MHD_websocket_check_upgrade_header ( "!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/,websocket"); if (MHD_WEBSOCKET_STATUS_OK != ret)