Skip to content

Commit

Permalink
Style: add whitespace between control statement and parentheses.
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora committed Jul 8, 2014
1 parent d224ed7 commit 7e7589e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/http/modules/ngx_http_geo_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/http/ngx_http_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ';':
Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/http/ngx_http_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/os/win32/ngx_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e7589e

Please sign in to comment.