aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_geo_module.c2
-rw-r--r--src/http/ngx_http_core_module.c4
-rw-r--r--src/http/ngx_http_parse.c8
-rw-r--r--src/http/ngx_http_upstream.c2
-rw-r--r--src/os/win32/ngx_service.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index 34c3b190d..9b3c6cb9c 100644
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -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);
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 2947ad32a..4071b6126 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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;
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index f28786946..b60f41bb6 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -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
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 012969170..b8812cf7d 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -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;
diff --git a/src/os/win32/ngx_service.c b/src/os/win32/ngx_service.c
index 5bed9a7d8..dc2c6e475 100644
--- a/src/os/win32/ngx_service.c
+++ b/src/os/win32/ngx_service.c
@@ -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;