From c00b236c8d9e507ace02776011502b897799f136 Mon Sep 17 00:00:00 2001 From: Eugene Ossintsev Date: Thu, 9 Apr 2015 00:15:40 -0400 Subject: [PATCH] Fix spelling in docs/ReleaseNotes.md and in comments in mongoose.c --- docs/ReleaseNotes.md | 4 ++-- mongoose.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/ReleaseNotes.md b/docs/ReleaseNotes.md index 24874f82..10fd4592 100644 --- a/docs/ReleaseNotes.md +++ b/docs/ReleaseNotes.md @@ -168,7 +168,7 @@ Changes in pre-compiled binaries: since mongoose buffers all data prior to calling the callback * keep-alive support is the default * Dropped SSI support and throttling support - * Several configuraition parameters are gone: + * Several configuration parameters are gone: * `cgi_environment` (replaced with MONGOOSE_CGI), * `protect_uri` (not useful) * `ssi_pattern` (SSI support is gone) @@ -214,5 +214,5 @@ Changes in pre-compiled binaries: * Couple of bugfixes, thanks to contributors -Eearlier release notes could be found by searching +Earlier release notes could be found by searching [Mongoose mailing list](https://groups.google.com/forum/#!forum/mongoose-users) diff --git a/mongoose.c b/mongoose.c index eb6c3a1e..23eb0b3b 100644 --- a/mongoose.c +++ b/mongoose.c @@ -1403,7 +1403,7 @@ struct dir_entry { file_stat_t st; }; -// NOTE(lsm): this enum shoulds be in sync with the config_options. +// NOTE(lsm): this enum should be in sync with the config_options. enum { ACCESS_CONTROL_LIST, #ifndef MONGOOSE_NO_FILESYSTEM @@ -1993,7 +1993,7 @@ static void *push_to_stdin(void *arg) { if (!WriteFile(tp->hPipe, buf + sent, n - sent, &k, 0)) stop = 1; } } - DBG(("%s", "FORWARED EVERYTHING TO CGI")); + DBG(("%s", "FORWARDED EVERYTHING TO CGI")); CloseHandle(tp->hPipe); NS_FREE(tp); _endthread(); @@ -2504,7 +2504,7 @@ static size_t parse_http_message(char *buf, size_t len, buf[len - 1] = '\0'; - // RFC says that all initial whitespaces should be ingored + // RFC says that all initial whitespaces should be ignored while (*buf != '\0' && isspace(* (unsigned char *) buf)) { buf++; } @@ -3514,11 +3514,11 @@ static int scan_directory(struct connection *conn, const char *dir, } mg_snprintf(path, sizeof(path), "%s%c%s", dir, '/', dp->d_name); - // Resize the array if nesessary + // Resize the array if necessary if (arr_ind >= arr_size) { if ((p = (struct dir_entry *) NS_REALLOC(*arr, (inc + arr_size) * sizeof(**arr))) != NULL) { - // Memset new chunk to zero, otherwize st_mtime will have garbage which + // Memset new chunk to zero, otherwise st_mtime will have garbage which // can make strftime() segfault, see // http://code.google.com/p/mongoose/issues/detail?id=79 memset(p + arr_size, 0, sizeof(**arr) * inc); @@ -4291,7 +4291,7 @@ static void do_ssi_include(struct mg_connection *conn, const char *ssi, mg_snprintf(path, sizeof(path), "%s", file_name); } else if (sscanf(tag, " file=\"%[^\"]\"", file_name) == 1 || sscanf(tag, " \"%[^\"]\"", file_name) == 1) { - // File name is relative to the currect document + // File name is relative to the current document mg_snprintf(path, sizeof(path), "%s", ssi); if ((p = strrchr(path, '/')) != NULL) { p[1] = '\0';