]> git.kaiwu.me - nginx.git/commitdiff
Fixed spelling in single-line comments.
authorRuslan Ermilov <ru@nginx.com>
Tue, 28 Feb 2012 11:31:05 +0000 (11:31 +0000)
committerRuslan Ermilov <ru@nginx.com>
Tue, 28 Feb 2012 11:31:05 +0000 (11:31 +0000)
21 files changed:
src/core/ngx_times.c
src/event/ngx_event.h
src/event/ngx_event_openssl.c
src/event/ngx_event_pipe.c
src/http/modules/ngx_http_autoindex_module.c
src/http/modules/ngx_http_index_module.c
src/http/modules/ngx_http_limit_conn_module.c
src/http/modules/ngx_http_limit_req_module.c
src/http/modules/ngx_http_log_module.c
src/http/modules/ngx_http_memcached_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_random_index_module.c
src/http/modules/ngx_http_rewrite_module.c
src/http/modules/ngx_http_userid_filter_module.c
src/http/ngx_http_parse_time.c
src/http/ngx_http_upstream.c
src/mail/ngx_mail_pop3_handler.c
src/os/unix/ngx_darwin_sendfile_chain.c
src/os/unix/ngx_freebsd_sendfile_chain.c
src/os/unix/ngx_user.c
src/os/win32/ngx_service.c

index 745a4bd1b2e3c11552ec0a2a0fe0f636bbb68277..6a5808fe2eaf578cafe4a768954a2f3791f03520 100644 (file)
@@ -287,7 +287,7 @@ ngx_gmtime(time_t t, ngx_tm_t *tp)
 
     days = n / 86400;
 
-    /* Jaunary 1, 1970 was Thursday */
+    /* January 1, 1970 was Thursday */
 
     wday = (4 + days) % 7;
 
index aa2183a22f6aaca0eecf91920cb36c58fa4d9c2a..8cc87ebff5b2eb2be233350aa1d079b4ba499519 100644 (file)
@@ -83,7 +83,7 @@ struct ngx_event_s {
 #endif
 
 #if (NGX_WIN32)
-    /* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was succesfull */
+    /* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */
     unsigned         accept_context_updated:1;
 #endif
 
index 93d38a11fddd28fa8ba6a71fed16f6cf0ac56fd3..6b9dba16b715bfaa9f0f816a8b4f012610cc22ab 100644 (file)
@@ -842,7 +842,7 @@ ngx_ssl_recv(ngx_connection_t *c, u_char *buf, size_t size)
         case NGX_ERROR:
             c->read->error = 1;
 
-            /* fall thruogh */
+            /* fall through */
 
         case NGX_AGAIN:
             return c->ssl->last;
index b959ff4ffdceaa2091ec0b2a2835d6008928aeb8..c2c79837fcfb428048973b93987b78c3e5d0ef6f 100644 (file)
@@ -969,7 +969,7 @@ ngx_event_pipe_add_free_buf(ngx_event_pipe_t *p, ngx_buf_t *b)
         return NGX_OK;
     }
 
-    /* the first free buf is partialy filled, thus add the free buf after it */
+    /* the first free buf is partially filled, thus add the free buf after it */
 
     cl->next = p->free_raw_bufs->next;
     p->free_raw_bufs->next = cl;
index 9b54d0cf91d3c9459100874634ef2c9f11507278..450a48e50042a64eb464036529c9e7cfd97b80c8 100644 (file)
@@ -95,8 +95,8 @@ static ngx_http_module_t  ngx_http_autoindex_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_autoindex_create_loc_conf,    /* create location configration */
-    ngx_http_autoindex_merge_loc_conf      /* merge location configration */
+    ngx_http_autoindex_create_loc_conf,    /* create location configuration */
+    ngx_http_autoindex_merge_loc_conf      /* merge location configuration */
 };
 
 
index 6bf4b0408ed9e8c67449679f09f99ca211fa8fb9..cfe4ba6cc63c81a1c158f0bdeeb8cb44ca9ea24c 100644 (file)
@@ -62,8 +62,8 @@ static ngx_http_module_t  ngx_http_index_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_index_create_loc_conf,        /* create location configration */
-    ngx_http_index_merge_loc_conf          /* merge location configration */
+    ngx_http_index_create_loc_conf,        /* create location configuration */
+    ngx_http_index_merge_loc_conf          /* merge location configuration */
 };
 
 
index c119945efd12422716376600fc505c19642ebe1c..c23c046ed4d15e6d3e89a82792e219e1658b42cc 100644 (file)
@@ -118,8 +118,8 @@ static ngx_http_module_t  ngx_http_limit_conn_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_limit_conn_create_conf,       /* create location configration */
-    ngx_http_limit_conn_merge_conf         /* merge location configration */
+    ngx_http_limit_conn_create_conf,       /* create location configuration */
+    ngx_http_limit_conn_merge_conf         /* merge location configuration */
 };
 
 
index f1698a3947e35ec1a36820da051ce09f68097886..18db7154958e6c3ad50b2496611246a262c7aecf 100644 (file)
@@ -121,8 +121,8 @@ static ngx_http_module_t  ngx_http_limit_req_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_limit_req_create_conf,        /* create location configration */
-    ngx_http_limit_req_merge_conf          /* merge location configration */
+    ngx_http_limit_req_create_conf,        /* create location configuration */
+    ngx_http_limit_req_merge_conf          /* merge location configuration */
 };
 
 
index 737a772d64bb676c96120f5f60500fee326b7125..2452f23b3259a244d0db83983b335130b760f655 100644 (file)
@@ -161,8 +161,8 @@ static ngx_http_module_t  ngx_http_log_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_log_create_loc_conf,          /* create location configration */
-    ngx_http_log_merge_loc_conf            /* merge location configration */
+    ngx_http_log_create_loc_conf,          /* create location configuration */
+    ngx_http_log_merge_loc_conf            /* merge location configuration */
 };
 
 
@@ -377,10 +377,10 @@ ngx_http_log_script_write(ngx_http_request_t *r, ngx_http_log_script_t *script,
 
     if (!r->root_tested) {
 
-        /* test root directory existance */
+        /* test root directory existence */
 
         if (ngx_http_map_uri_to_path(r, &path, &root, 0) == NULL) {
-            /* simulate successfull logging */
+            /* simulate successful logging */
             return len;
         }
 
@@ -404,14 +404,14 @@ ngx_http_log_script_write(ngx_http_request_t *r, ngx_http_log_script_t *script,
             != NGX_OK)
         {
             if (of.err == 0) {
-                /* simulate successfull logging */
+                /* simulate successful logging */
                 return len;
             }
 
             ngx_log_error(NGX_LOG_ERR, r->connection->log, of.err,
                           "testing \"%s\" existence failed", path.data);
 
-            /* simulate successfull logging */
+            /* simulate successful logging */
             return len;
         }
 
@@ -419,7 +419,7 @@ ngx_http_log_script_write(ngx_http_request_t *r, ngx_http_log_script_t *script,
             ngx_log_error(NGX_LOG_ERR, r->connection->log, NGX_ENOTDIR,
                           "testing \"%s\" existence failed", path.data);
 
-            /* simulate successfull logging */
+            /* simulate successful logging */
             return len;
         }
     }
@@ -428,7 +428,7 @@ ngx_http_log_script_write(ngx_http_request_t *r, ngx_http_log_script_t *script,
                             script->values->elts)
         == NULL)
     {
-        /* simulate successfull logging */
+        /* simulate successful logging */
         return len;
     }
 
@@ -457,7 +457,7 @@ ngx_http_log_script_write(ngx_http_request_t *r, ngx_http_log_script_t *script,
     {
         ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno,
                       "%s \"%s\" failed", of.failed, log.data);
-        /* simulate successfull logging */
+        /* simulate successful logging */
         return len;
     }
 
index be45d4eebf68cce5ead28ac5fd9b3c2e3f09e541..5077ded9acb0b99933c8dd01650cf8c96d149bde 100644 (file)
@@ -115,8 +115,8 @@ static ngx_http_module_t  ngx_http_memcached_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_memcached_create_loc_conf,    /* create location configration */
-    ngx_http_memcached_merge_loc_conf      /* merge location configration */
+    ngx_http_memcached_create_loc_conf,    /* create location configuration */
+    ngx_http_memcached_merge_loc_conf      /* merge location configuration */
 };
 
 
index f2bff3d3d7ea9f194f3492dfaa4f5bb23d0421b8..678c70e771f3dd902decea1d114b14c9adaa8487 100644 (file)
@@ -530,8 +530,8 @@ static ngx_http_module_t  ngx_http_proxy_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_proxy_create_loc_conf,        /* create location configration */
-    ngx_http_proxy_merge_loc_conf          /* merge location configration */
+    ngx_http_proxy_create_loc_conf,        /* create location configuration */
+    ngx_http_proxy_merge_loc_conf          /* merge location configuration */
 };
 
 
index 67f34f7391844249a1d60fb11c79597350fcd09f..b0f0e080912f8797a7f8610fed0c7298eb698e14 100644 (file)
@@ -49,8 +49,8 @@ static ngx_http_module_t  ngx_http_random_index_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_random_index_create_loc_conf, /* create location configration */
-    ngx_http_random_index_merge_loc_conf   /* merge location configration */
+    ngx_http_random_index_create_loc_conf, /* create location configuration */
+    ngx_http_random_index_merge_loc_conf   /* merge location configuration */
 };
 
 
index 98da67f2797d78689abe62647cfc65a3c5d31244..74d26e524f480aab10922252a0048e3b09d4d349 100644 (file)
@@ -112,8 +112,8 @@ static ngx_http_module_t  ngx_http_rewrite_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_rewrite_create_loc_conf,      /* create location configration */
-    ngx_http_rewrite_merge_loc_conf        /* merge location configration */
+    ngx_http_rewrite_create_loc_conf,      /* create location configuration */
+    ngx_http_rewrite_merge_loc_conf        /* merge location configuration */
 };
 
 
index 8713dd62945286207848acb2d4bdea39486fe98e..1487c091eeee1d30243dff3f19e707298319b414 100644 (file)
@@ -166,8 +166,8 @@ static ngx_http_module_t  ngx_http_userid_filter_module_ctx = {
     NULL,                                  /* create server configuration */
     NULL,                                  /* merge server configuration */
 
-    ngx_http_userid_create_conf,           /* create location configration */
-    ngx_http_userid_merge_conf             /* merge location configration */
+    ngx_http_userid_create_conf,           /* create location configuration */
+    ngx_http_userid_merge_conf             /* merge location configuration */
 };
 
 
index 7d3aeaeffe0d75a5725e89b061a0323fa4dd6211..3801df2fd641644dab4f66a03b73b0b25e6c3c60 100644 (file)
@@ -242,7 +242,7 @@ ngx_http_parse_time(u_char *value, size_t len)
         year -= 1;
     }
 
-    /* Gauss' formula for Grigorian days since March 1, 1 BC */
+    /* Gauss' formula for Gregorian days since March 1, 1 BC */
 
     time = (uint64_t) (
             /* days in years including leap years since March 1, 1 BC */
index 4504d982308c9845f84cb2bde02c67184f12e03a..7e368c1c1b4684e84a4bd15b81ea4a35ffbe59a4 100644 (file)
@@ -2293,7 +2293,7 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
     }
 
     if (ngx_event_flags & NGX_USE_AIO_EVENT) {
-        /* the posted aio operation may currupt a shadow buffer */
+        /* the posted aio operation may corrupt a shadow buffer */
         p->single_buf = 1;
     }
 
index 0a073288dafca115e9c62bbef8dd1231fdfd5f6b..51bc257a5951f27f5a108dd096c58d87f6319c90 100644 (file)
@@ -218,7 +218,7 @@ ngx_mail_pop3_auth_state(ngx_event_t *rev)
 
             break;
 
-        /* suppress warinings */
+        /* suppress warnings */
         case ngx_pop3_passwd:
             break;
 
index c869765491b70b349f62d8a064cf8bf2ecbf85cc..ec247d21bfe90c227701dc43268f2b65a9f9ab64 100644 (file)
@@ -173,7 +173,7 @@ ngx_darwin_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
 
         if (file && header.nelts == 0) {
 
-            /* create the tailer iovec and coalesce the neighbouring bufs */
+            /* create the trailer iovec and coalesce the neighbouring bufs */
 
             prev = NULL;
             iov = NULL;
index 610697d77fbc91b9f8e8d233394864ce97188cae..26b326705c5017389ff5633f03ee5274acbbe898 100644 (file)
@@ -178,7 +178,7 @@ ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
 
         if (file) {
 
-            /* create the tailer iovec and coalesce the neighbouring bufs */
+            /* create the trailer iovec and coalesce the neighbouring bufs */
 
             prev = NULL;
             iov = NULL;
index cb452e62b11638b9da397c7ecd5fd155a2b8a98e..27f990e83c4ccfd27501e0995328253178537d68 100644 (file)
@@ -67,7 +67,7 @@ ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)
 
 #if (NGX_THREADS && NGX_NONREENTRANT_CRYPT)
 
-    /* crypt() is a time consuming funtion, so we only try to lock */
+    /* crypt() is a time consuming function, so we only try to lock */
 
     if (ngx_mutex_trylock(ngx_crypt_mutex) != NGX_OK) {
         return NGX_AGAIN;
index d8b41a9b282d553344a9b390330b5812376dd68e..5bed9a7d8a465673fe32cae96fbdf10ed6a704cb 100644 (file)
@@ -20,7 +20,7 @@ ngx_int_t ngx_service(ngx_log_t *log)
 {
     /* primary thread */
 
-    /* StartServiceCtrlDispatcher() shouxpdl be called within 30 seconds */
+    /* StartServiceCtrlDispatcher() should be called within 30 seconds */
 
     if (StartServiceCtrlDispatcher(st) == 0) {
         ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,