]> git.kaiwu.me - nginx.git/commitdiff
Style: add whitespace between control statement and parentheses.
authorPiotr Sikora <piotr@cloudflare.com>
Tue, 8 Jul 2014 10:03:13 +0000 (03:03 -0700)
committerPiotr Sikora <piotr@cloudflare.com>
Tue, 8 Jul 2014 10:03:13 +0000 (03:03 -0700)
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
src/http/modules/ngx_http_geo_module.c
src/http/ngx_http_core_module.c
src/http/ngx_http_parse.c
src/http/ngx_http_upstream.c
src/os/win32/ngx_service.c

index 34c3b190d188826b56ae424ec07150f585ac0833..9b3c6cb9ceaf412ecff2795034fc7d621d70bbd9 100644 (file)
@@ -1470,7 +1470,7 @@ ngx_http_geo_include_binary_base(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
 
     vv = (ngx_http_variable_value_t *) (base + sizeof(ngx_http_geo_header_t));
 
-    while(vv->data) {
+    while (vv->data) {
         len = ngx_align(sizeof(ngx_http_variable_value_t) + vv->len,
                         sizeof(void *));
         ngx_crc32_update(&crc32, (u_char *) vv, len);
index 2947ad32a11673a3176127ae98c0fc77c5ed2aad..4071b612649a1f213d1e3eb281671e69bdd20402 100644 (file)
@@ -2355,7 +2355,7 @@ ngx_http_gzip_accept_encoding(ngx_str_t *ae)
     p += 4;
 
     while (p < last) {
-        switch(*p++) {
+        switch (*p++) {
         case ',':
             return NGX_OK;
         case ';':
@@ -2372,7 +2372,7 @@ ngx_http_gzip_accept_encoding(ngx_str_t *ae)
 quantity:
 
     while (p < last) {
-        switch(*p++) {
+        switch (*p++) {
         case 'q':
         case 'Q':
             goto equal;
index f28786946bfbea3a3202ad7737a30db3f058182a..b60f41bb6a3df54ffe1c7a2f9e4b9da254265ddf 100644 (file)
@@ -1287,7 +1287,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
                 break;
             }
 
-            switch(ch) {
+            switch (ch) {
 #if (NGX_WIN32)
             case '\\':
                 if (u - 2 >= r->uri.data
@@ -1357,7 +1357,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
                 break;
             }
 
-            switch(ch) {
+            switch (ch) {
 #if (NGX_WIN32)
             case '\\':
                 break;
@@ -1400,7 +1400,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
                 break;
             }
 
-            switch(ch) {
+            switch (ch) {
 #if (NGX_WIN32)
             case '\\':
 #endif
@@ -1441,7 +1441,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
                 break;
             }
 
-            switch(ch) {
+            switch (ch) {
 #if (NGX_WIN32)
             case '\\':
 #endif
index 012969170a6340081e2b59e739b30902273bd7ee..b8812cf7dda07c4906d13285d16e3643b90a14af 100644 (file)
@@ -3441,7 +3441,7 @@ ngx_http_upstream_next(ngx_http_request_t *r, ngx_http_upstream_t *u,
         u->peer.tries++;
 
     } else {
-        switch(ft_type) {
+        switch (ft_type) {
 
         case NGX_HTTP_UPSTREAM_FT_TIMEOUT:
             status = NGX_HTTP_GATEWAY_TIME_OUT;
index 5bed9a7d8a465673fe32cae96fbdf10ed6a704cb..dc2c6e4756dced74ec826cffe9f0fb4b4c1d8024 100644 (file)
@@ -89,7 +89,7 @@ u_int service_handler(u_int control, u_int type, void *data, void *ctx)
 {
     /* primary thread */
 
-    switch(control) {
+    switch (control) {
 
     case SERVICE_CONTROL_INTERROGATE:
         status = NGX_IOCP_INTERROGATE;