[nginx] svn commit: r4573 - in trunk/src: core event event/modules http http/modules os/unix os/win32

ru at nginx.com ru at nginx.com
Tue Apr 3 07:37:33 UTC 2012


Author: ru
Date: 2012-04-03 07:37:31 +0000 (Tue, 03 Apr 2012)
New Revision: 4573
URL: http://trac.nginx.org/nginx/changeset/4573/nginx

Log:
Fixed spelling in multiline C comments.


Modified:
   trunk/src/core/ngx_conf_file.h
   trunk/src/core/ngx_connection.c
   trunk/src/core/ngx_file.c
   trunk/src/core/ngx_inet.c
   trunk/src/core/ngx_times.c
   trunk/src/event/modules/ngx_epoll_module.c
   trunk/src/event/modules/ngx_eventport_module.c
   trunk/src/event/modules/ngx_kqueue_module.c
   trunk/src/event/ngx_event_openssl.c
   trunk/src/http/modules/ngx_http_degradation_module.c
   trunk/src/http/ngx_http.c
   trunk/src/http/ngx_http_parse.c
   trunk/src/http/ngx_http_upstream.c
   trunk/src/http/ngx_http_variables.c
   trunk/src/os/unix/ngx_freebsd_rfork_thread.c
   trunk/src/os/unix/ngx_freebsd_sendfile_chain.c
   trunk/src/os/unix/ngx_gcc_atomic_sparc64.h
   trunk/src/os/unix/ngx_setproctitle.c
   trunk/src/os/win32/ngx_win32_config.h

Modified: trunk/src/core/ngx_conf_file.h
===================================================================
--- trunk/src/core/ngx_conf_file.h	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/core/ngx_conf_file.h	2012-04-03 07:37:31 UTC (rev 4573)
@@ -14,7 +14,7 @@
 
 
 /*
- *        AAAA  number of agruments
+ *        AAAA  number of arguments
  *      FF      command flags
  *    TT        command type, i.e. HTTP "location" or "server" command
  */

Modified: trunk/src/core/ngx_connection.c
===================================================================
--- trunk/src/core/ngx_connection.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/core/ngx_connection.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -708,7 +708,7 @@
                     /*
                      * it seems that Linux-2.6.x OpenVZ sends events
                      * for closed shared listening sockets unless
-                     * the events was explicity deleted
+                     * the events was explicitly deleted
                      */
 
                     ngx_del_event(c->read, NGX_READ_EVENT, 0);

Modified: trunk/src/core/ngx_file.c
===================================================================
--- trunk/src/core/ngx_file.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/core/ngx_file.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -808,7 +808,7 @@
  *     reallocated if ctx->alloc is nonzero
  *
  * ctx->alloc - a size of data structure that is allocated at every level
- *     and is initilialized by ctx->init_handler()
+ *     and is initialized by ctx->init_handler()
  *
  * ctx->log - a log
  *

Modified: trunk/src/core/ngx_inet.c
===================================================================
--- trunk/src/core/ngx_inet.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/core/ngx_inet.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -459,7 +459,7 @@
     struct sockaddr_in6  *sin6;
 
     /*
-     * prevent MSVC8 waring:
+     * prevent MSVC8 warning:
      *    potentially uninitialized local variable 'inaddr6' used
      */
     ngx_memzero(inaddr6.s6_addr, sizeof(struct in6_addr));

Modified: trunk/src/core/ngx_times.c
===================================================================
--- trunk/src/core/ngx_times.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/core/ngx_times.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -33,7 +33,7 @@
 #if !(NGX_WIN32)
 
 /*
- * locatime() and localtime_r() are not Async-Signal-Safe functions, therefore,
+ * localtime() and localtime_r() are not Async-Signal-Safe functions, therefore,
  * they must not be called by a signal handler, so we use the cached
  * GMT offset value. Fortunately the value is changed only two times a year.
  */
@@ -308,7 +308,7 @@
     /*
      * The "days" should be adjusted to 1 only, however, some March 1st's go
      * to previous year, so we adjust them to 2.  This causes also shift of the
-     * last Feburary days to next year, but we catch the case when "yday"
+     * last February days to next year, but we catch the case when "yday"
      * becomes negative.
      */
 

Modified: trunk/src/event/modules/ngx_epoll_module.c
===================================================================
--- trunk/src/event/modules/ngx_epoll_module.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/event/modules/ngx_epoll_module.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -445,7 +445,7 @@
 
     /*
      * when the file descriptor is closed, the epoll automatically deletes
-     * it from its queue, so we do not need to delete explicity the event
+     * it from its queue, so we do not need to delete explicitly the event
      * before the closing the file descriptor
      */
 
@@ -524,7 +524,7 @@
 
     /*
      * when the file descriptor is closed the epoll automatically deletes
-     * it from its queue so we do not need to delete explicity the event
+     * it from its queue so we do not need to delete explicitly the event
      * before the closing the file descriptor
      */
 

Modified: trunk/src/event/modules/ngx_eventport_module.c
===================================================================
--- trunk/src/event/modules/ngx_eventport_module.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/event/modules/ngx_eventport_module.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -322,7 +322,7 @@
 
     /*
      * when the file descriptor is closed, the event port automatically
-     * dissociates it from the port, so we do not need to dissociate explicity
+     * dissociates it from the port, so we do not need to dissociate explicitly
      * the event before the closing the file descriptor
      */
 

Modified: trunk/src/event/modules/ngx_kqueue_module.c
===================================================================
--- trunk/src/event/modules/ngx_kqueue_module.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/event/modules/ngx_kqueue_module.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -377,7 +377,7 @@
 
     /*
      * when the file descriptor is closed the kqueue automatically deletes
-     * its filters so we do not need to delete explicity the event
+     * its filters so we do not need to delete explicitly the event
      * before the closing the file descriptor.
      */
 

Modified: trunk/src/event/ngx_event_openssl.c
===================================================================
--- trunk/src/event/ngx_event_openssl.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/event/ngx_event_openssl.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -489,7 +489,7 @@
 
     /*
      * Elliptic-Curve Diffie-Hellman parameters are either "named curves"
-     * from RFC 4492 section 5.1.1, or explicitely described curves over
+     * from RFC 4492 section 5.1.1, or explicitly described curves over
      * binary fields. OpenSSL only supports the "named curves", which provide
      * maximum interoperability.
      */

Modified: trunk/src/http/modules/ngx_http_degradation_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_degradation_module.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/http/modules/ngx_http_degradation_module.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -126,7 +126,7 @@
              * ELF/i386 is loaded at 0x08000000, 128M
              * ELF/amd64 is loaded at 0x00400000, 4M
              *
-             * use a function address to substract the loading address
+             * use a function address to subtract the loading address
              */
 
             sbrk_size = (size_t) sbrk(0) - ((uintptr_t) ngx_palloc & ~0x3FFFFF);

Modified: trunk/src/http/ngx_http.c
===================================================================
--- trunk/src/http/ngx_http.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/http/ngx_http.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -1417,7 +1417,7 @@
 
         /*
          * check whether all name-based servers have the same
-         * configuraiton as a default server for given address:port
+         * configuration as a default server for given address:port
          */
 
         addr = port[p].addrs.elts;

Modified: trunk/src/http/ngx_http_parse.c
===================================================================
--- trunk/src/http/ngx_http_parse.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/http/ngx_http_parse.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -1097,7 +1097,7 @@
 
         /*
          * we use "ch = *p++" inside the cycle, but this operation is safe,
-         * because after the URI there is always at least one charcter:
+         * because after the URI there is always at least one character:
          * the line feed
          */
 

Modified: trunk/src/http/ngx_http_upstream.c
===================================================================
--- trunk/src/http/ngx_http_upstream.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/http/ngx_http_upstream.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -1196,7 +1196,7 @@
     {
         /*
          * the r->request_body->buf can be reused for one request only,
-         * the subrequests should allocate their own temporay bufs
+         * the subrequests should allocate their own temporary bufs
          */
 
         u->output.free = ngx_alloc_chain_link(r->pool);

Modified: trunk/src/http/ngx_http_variables.c
===================================================================
--- trunk/src/http/ngx_http_variables.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/http/ngx_http_variables.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -112,7 +112,7 @@
 /*
  * the $http_host, $http_user_agent, $http_referer, $http_via,
  * and $http_x_forwarded_for variables may be handled by generic
- * ngx_http_variable_unknown_header_in(), but for perfomance reasons
+ * ngx_http_variable_unknown_header_in(), but for performance reasons
  * they are handled using dedicated entries
  */
 

Modified: trunk/src/os/unix/ngx_freebsd_rfork_thread.c
===================================================================
--- trunk/src/os/unix/ngx_freebsd_rfork_thread.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/os/unix/ngx_freebsd_rfork_thread.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -11,14 +11,14 @@
 /*
  * The threads implementation uses the rfork(RFPROC|RFTHREAD|RFMEM) syscall
  * to create threads.  All threads use the stacks of the same size mmap()ed
- * below the main stack.  Thus the current thread id is determinated via
+ * below the main stack.  Thus the current thread id is determined via
  * the stack pointer value.
  *
  * The mutex implementation uses the ngx_atomic_cmp_set() operation
  * to acquire a mutex and the SysV semaphore to wait on a mutex and to wake up
  * the waiting threads.  The light mutex does not use semaphore, so after
  * spinning in the lock the thread calls sched_yield().  However the light
- * mutecies are intended to be used with the "trylock" operation only.
+ * mutexes are intended to be used with the "trylock" operation only.
  * The SysV semop() is a cheap syscall, particularly if it has little sembuf's
  * and does not use SEM_UNDO.
  *

Modified: trunk/src/os/unix/ngx_freebsd_sendfile_chain.c
===================================================================
--- trunk/src/os/unix/ngx_freebsd_sendfile_chain.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/os/unix/ngx_freebsd_sendfile_chain.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -18,7 +18,7 @@
  * as the 11 full 1460-bytes packets, then one incomplete 324-bytes packet,
  * and then again the 11 full 1460-bytes packets.
  *
- * Threfore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK)
+ * Therefore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK)
  * to postpone the sending - it not only sends a header and the first part of
  * the file in one packet, but also sends the file pages in the full packets.
  *

Modified: trunk/src/os/unix/ngx_gcc_atomic_sparc64.h
===================================================================
--- trunk/src/os/unix/ngx_gcc_atomic_sparc64.h	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/os/unix/ngx_gcc_atomic_sparc64.h	2012-04-03 07:37:31 UTC (rev 4573)
@@ -15,7 +15,7 @@
  *         r0 = [r1];
  *     }
  *
- * so "r0 == r2" means that the operation was successfull.
+ * so "r0 == r2" means that the operation was successful.
  *
  *
  * The "r" means the general register.

Modified: trunk/src/os/unix/ngx_setproctitle.c
===================================================================
--- trunk/src/os/unix/ngx_setproctitle.c	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/os/unix/ngx_setproctitle.c	2012-04-03 07:37:31 UTC (rev 4573)
@@ -21,7 +21,7 @@
  * from argv[0] for our process title.
  *
  * The Solaris's standard /bin/ps does not show the changed process title.
- * You have to use "/usr/ucb/ps -w" instead.  Besides, the UCB ps dos not
+ * You have to use "/usr/ucb/ps -w" instead.  Besides, the UCB ps does not
  * show a new title if its length less than the origin command line length.
  * To avoid it we append to a new title the origin command line in the
  * parenthesis.

Modified: trunk/src/os/win32/ngx_win32_config.h
===================================================================
--- trunk/src/os/win32/ngx_win32_config.h	2012-04-02 21:31:45 UTC (rev 4572)
+++ trunk/src/os/win32/ngx_win32_config.h	2012-04-03 07:37:31 UTC (rev 4573)
@@ -20,7 +20,7 @@
 #define _CRT_SECURE_NO_WARNINGS
 
 /*
- * we need to include <windows.h> explicity before <winsock2.h> because
+ * we need to include <windows.h> explicitly before <winsock2.h> because
  * the warning 4201 is enabled in <windows.h>
  */
 #include <windows.h>



More information about the nginx-devel mailing list