From 66916394ede219d55a13eae8917635313a8781b5 Mon Sep 17 00:00:00 2001
From: Pavel Shramov
Date: Tue, 28 Nov 2017 07:46:22 +0800
Subject: [PATCH] lib: Spelling fixes based on debian packaging
---
READMEs/README.lwsws.md | 2 +-
lib/http2/http2.c | 4 ++--
lib/libwebsockets.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/READMEs/README.lwsws.md b/READMEs/README.lwsws.md
index 87e3cb08..03b6ff13 100644
--- a/READMEs/README.lwsws.md
+++ b/READMEs/README.lwsws.md
@@ -335,7 +335,7 @@ provide them using "pmo"
}]
}
-2) When using a cgi:// protcol origin at a mountpoint, you may also give cgi environment variables specific to the mountpoint like this
+2) When using a cgi:// protocol origin at a mountpoint, you may also give cgi environment variables specific to the mountpoint like this
```
{
"mountpoint": "/git",
diff --git a/lib/http2/http2.c b/lib/http2/http2.c
index da893ff6..bae5c961 100644
--- a/lib/http2/http2.c
+++ b/lib/http2/http2.c
@@ -751,7 +751,7 @@ lws_h2_parse_frame_header(struct lws *wsi)
/* if it's data, either way no swsi means CLOSED state */
if (h2n->type == LWS_H2_FRAME_TYPE_DATA) {
lws_h2_goaway(wsi, H2_ERR_STREAM_CLOSED,
- "Data for nonexistant sid");
+ "Data for nonexistent sid");
return 0;
}
/* if the sid is credible, treat as wsi for it closed */
@@ -762,7 +762,7 @@ lws_h2_parse_frame_header(struct lws *wsi)
lwsl_info("%s: wsi %p, No child for sid %d, rx cmd %d\n",
__func__, h2n->swsi, h2n->sid, h2n->type);
lws_h2_goaway(wsi, H2_ERR_STREAM_CLOSED,
- "Data for nonexistant sid");
+ "Data for nonexistent sid");
return 0;
}
}
diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h
index 6121978e..9e96af47 100644
--- a/lib/libwebsockets.h
+++ b/lib/libwebsockets.h
@@ -1075,7 +1075,7 @@ enum lws_callback_reasons {
LWS_CALLBACK_OPENSSL_LOAD_EXTRA_SERVER_VERIFY_CERTS = 22,
/**< if configured for
* including OpenSSL support, this callback allows your user code
- * to load extra certifcates into the server which allow it to
+ * to load extra certificates into the server which allow it to
* verify the validity of certificates returned by clients. user
* is the server's OpenSSL SSL_CTX* and in is the lws_vhost * */
LWS_CALLBACK_OPENSSL_PERFORM_CLIENT_CERT_VERIFICATION = 23,
@@ -5249,7 +5249,7 @@ LWS_VISIBLE LWS_EXTERN unsigned long
lws_now_secs(void);
/**
- * lws_get_context - Allow geting lws_context from a Websocket connection
+ * lws_get_context - Allow getting lws_context from a Websocket connection
* instance
*
* With this function, users can access context in the callback function.