diff --git a/lib/client.c b/lib/client.c
index 2172645075f0f05ef7fcbe5eab1fdf2afdc56c43..33d990e410b6b7c227450df420befb60b4e7d5bd 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 e23f4ed75f08c2d9fcb55c2b14d6f1d4844f537e..6ae348a6e3ee2cdf2e9cb8025277536bca35d1aa 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 0c0b3f3b7aa0b718c87581604ed9d9b3461c00ff..7db50aa5f0fe70dc5b2f278ec149c97ce9c92fa1 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 5f5de17262e4770382e2a499e6e7b5fc67152105..26daa96e73fc6c2f907d56308bd17b58b1a32488 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 316198cc64ea280a8849347b57f8ed7330e998f9..c2c4fd1e8e5da0e80672adb65fb2e1ab930a03d8 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
  */