commit 67c79a9cd1174432988bcb315317f9dace8e131b
parent 26b082a6b45e90fcaa692f7f1a68670e198a7d9b
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 27 Apr 2021 23:22:31 +0200
fix typos
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/microhttpd_ws/mhd_websocket.c b/src/microhttpd_ws/mhd_websocket.c
@@ -30,11 +30,11 @@
struct MHD_WebSocketStream
{
- /* The function pointer to malloc for payload (can be used to use different memory managment) */
+ /* The function pointer to malloc for payload (can be used to use different memory management) */
MHD_WebSocketMallocCallback malloc;
- /* The function pointer to realloc for payload (can be used to use different memory managment) */
+ /* The function pointer to realloc for payload (can be used to use different memory management) */
MHD_WebSocketReallocCallback realloc;
- /* The function pointer to free for payload (can be used to use different memory managment) */
+ /* The function pointer to free for payload (can be used to use different memory management) */
MHD_WebSocketFreeCallback free;
/* The flags specified upon initialization. It may alter the behavior of decoding/encoding */
int flags;
@@ -400,7 +400,7 @@ MHD_websocket_decode (struct MHD_WebSocketStream*ws,
if (0 != (opcode & 0x70))
{
/* RFC 6455 5.2 RSV1-3: If a reserved flag is set */
- /* (while it isn't specified by an extension) the communcation must fail. */
+ /* (while it isn't specified by an extension) the communication must fail. */
ws->validity = MHD_WEBSOCKET_VALIDITY_INVALID;
if (0 != (ws->flags
& MHD_WEBSOCKET_FLAG_GENERATE_CLOSE_FRAMES_ON_ERROR))
diff --git a/src/microhttpd_ws/test_websocket.c b/src/microhttpd_ws/test_websocket.c
@@ -1055,7 +1055,7 @@ test_decodes ()
MHD_WEBSOCKET_STATUS_BINARY_LAST_FRAGMENT,
MHD_WEBSOCKET_VALIDITY_VALID,
12);
- /* Regular test: Fragmented binary frame wit payload */
+ /* Regular test: Fragmented binary frame with payload */
failed += test_decode_single (__LINE__,
MHD_WEBSOCKET_FLAG_SERVER
| MHD_WEBSOCKET_FLAG_NO_FRAGMENTS,
@@ -2724,7 +2724,7 @@ test_decodes ()
MHD_WEBSOCKET_STATUS_UTF8_ENCODING_ERROR,
MHD_WEBSOCKET_VALIDITY_INVALID,
7);
- /* Edge test (success): The maxium allowed UTF-8 character */
+ /* Edge test (success): The maximum allowed UTF-8 character */
failed += test_decode_single (__LINE__,
MHD_WEBSOCKET_FLAG_SERVER
| MHD_WEBSOCKET_FLAG_NO_FRAGMENTS,
@@ -2738,7 +2738,7 @@ test_decodes ()
MHD_WEBSOCKET_STATUS_TEXT_FRAME,
MHD_WEBSOCKET_VALIDITY_VALID,
16);
- /* Edge test (fail): The maxium allowed UTF-8 character + 1 */
+ /* Edge test (fail): The maximum allowed UTF-8 character + 1 */
failed += test_decode_single (__LINE__,
MHD_WEBSOCKET_FLAG_SERVER
| MHD_WEBSOCKET_FLAG_NO_FRAGMENTS,