From 834cb8525e93b45d54cf09c1fb337295f7a7699d Mon Sep 17 00:00:00 2001
From: Peter Pentchev <roam@ringlet.net>
Date: Tue, 16 Feb 2016 15:19:36 +0200
Subject: [PATCH] Fix some typos.

---
 lib/client.c                       |  2 +-
 lib/extension-permessage-deflate.c |  4 ++--
 lib/libwebsockets.h                | 10 +++++-----
 lib/server.c                       |  2 +-
 test-server/test-server-libev.c    |  2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/lib/client.c b/lib/client.c
index 21726450..33d990e4 100644
--- a/lib/client.c
+++ b/lib/client.c
@@ -640,7 +640,7 @@ check_extensions:
 	/* instantiate the accepted extensions */
 
 	if (!lws_hdr_total_length(wsi, WSI_TOKEN_EXTENSIONS)) {
-		lwsl_ext("no client extenstions allowed by server\n");
+		lwsl_ext("no client extensions allowed by server\n");
 		goto check_accept;
 	}
 
diff --git a/lib/extension-permessage-deflate.c b/lib/extension-permessage-deflate.c
index e23f4ed7..6ae348a6 100644
--- a/lib/extension-permessage-deflate.c
+++ b/lib/extension-permessage-deflate.c
@@ -197,7 +197,7 @@ lws_extension_callback_pm_deflate(struct lws_context *context,
 		 * If we did not already send in the 00 00 FF FF, and he's
 		 * out of input, he did not EXACTLY fill the output buffer
 		 * (which is ambiguous and we will force it to go around
-		 * again by witholding a byte), and he's otherwise working on
+		 * again by withholding a byte), and he's otherwise working on
 		 * being a FIN fragment, then do the FIN message processing
 		 * of faking up the 00 00 FF FF that the sender stripped.
 		 */
@@ -232,7 +232,7 @@ lws_extension_callback_pm_deflate(struct lws_context *context,
 		 * more in the pipeline.
 		 *
 		 * So to work around that safely, if it used all output space
-		 * exactly, we ALWAYS say there is more coming and we withold
+		 * exactly, we ALWAYS say there is more coming and we withhold
 		 * the last byte of the buffer to guarantee that is true.
 		 *
 		 * That still leaves us at least one byte to finish with a FIN
diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h
index 0c0b3f3b..7db50aa5 100644
--- a/lib/libwebsockets.h
+++ b/lib/libwebsockets.h
@@ -423,7 +423,7 @@ struct lws_plat_file_ops {
 		     unsigned char *buf, unsigned long len);
 
 	/* Add new things just above here ---^
-	 * This is part of the ABI, don't needlessly break compatibilty */
+	 * This is part of the ABI, don't needlessly break compatibility */
 };
 
 /*
@@ -1190,7 +1190,7 @@ struct lws_protocols {
 	void *user;
 
 	/* Add new things just above here ---^
-	 * This is part of the ABI, don't needlessly break compatibilty */
+	 * This is part of the ABI, don't needlessly break compatibility */
 };
 
 enum lws_ext_options_types {
@@ -1199,7 +1199,7 @@ enum lws_ext_options_types {
 	EXTARG_OPT_DEC
 
 	/* Add new things just above here ---^
-	 * This is part of the ABI, don't needlessly break compatibilty */
+	 * This is part of the ABI, don't needlessly break compatibility */
 };
 
 /**
@@ -1216,7 +1216,7 @@ struct lws_ext_options {
 	enum lws_ext_options_types type;
 
 	/* Add new things just above here ---^
-	 * This is part of the ABI, don't needlessly break compatibilty */
+	 * This is part of the ABI, don't needlessly break compatibility */
 };
 
 struct lws_ext_option_arg {
@@ -1239,7 +1239,7 @@ struct lws_extension {
 	const char *client_offer;
 
 	/* Add new things just above here ---^
-	 * This is part of the ABI, don't needlessly break compatibilty */
+	 * This is part of the ABI, don't needlessly break compatibility */
 };
 
 /*
diff --git a/lib/server.c b/lib/server.c
index 5f5de172..26daa96e 100644
--- a/lib/server.c
+++ b/lib/server.c
@@ -575,7 +575,7 @@ upgrade_ws:
 		 * mode any more then... ah_temp member is at start the same
 		 * though)
 		 *
-		 * Beacuse rxpos/rxlen shows something in the ah, we will get
+		 * Because rxpos/rxlen shows something in the ah, we will get
 		 * service guaranteed next time around the event loop
 		 *
 		 * All union members begin with hdr, so we can use it even
diff --git a/test-server/test-server-libev.c b/test-server/test-server-libev.c
index 316198cc..c2c4fd1e 100644
--- a/test-server/test-server-libev.c
+++ b/test-server/test-server-libev.c
@@ -31,7 +31,7 @@ struct lws_plat_file_ops fops_plat;
 char *resource_path = LOCAL_RESOURCE_PATH;
 
 /*
- * libev dumps their hygeine problems on their users blaming compiler
+ * libev dumps their hygiene problems on their users blaming compiler
  * http://lists.schmorp.de/pipermail/libev/2008q4/000442.html
  */
 
-- 
GitLab