Mercurial > hg > nginx
changeset 2024:7018254cc006
style fix
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 22 May 2008 12:09:41 +0000 |
parents | 7d58e319285e |
children | 638bbe2464f3 |
files | src/core/nginx.c src/core/ngx_connection.c src/event/modules/ngx_kqueue_module.c src/event/ngx_event.c src/event/ngx_event_pipe.c src/http/modules/ngx_http_proxy_module.c src/http/modules/ngx_http_ssi_filter_module.c src/http/ngx_http_core_module.h src/http/ngx_http_header_filter_module.c src/http/ngx_http_special_response.c |
diffstat | 10 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/nginx.c Thu May 22 11:11:16 2008 +0000 +++ b/src/core/nginx.c Thu May 22 12:09:41 2008 +0000 @@ -1078,7 +1078,7 @@ ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid character \"%c\" in \"worker_cpu_affinity\"", ch); - return NGX_CONF_ERROR ; + return NGX_CONF_ERROR; } }
--- a/src/core/ngx_connection.c Thu May 22 11:11:16 2008 +0000 +++ b/src/core/ngx_connection.c Thu May 22 12:09:41 2008 +0000 @@ -229,7 +229,7 @@ /* TODO: configurable try number */ - for (tries = 5 ; tries; tries--) { + for (tries = 5; tries; tries--) { failed = 0; /* for each listening socket */
--- a/src/event/modules/ngx_kqueue_module.c Thu May 22 11:11:16 2008 +0000 +++ b/src/event/modules/ngx_kqueue_module.c Thu May 22 12:09:41 2008 +0000 @@ -446,7 +446,7 @@ || __FreeBSD_version >= 500018 |NOTE_REVOKE #endif - ; + ; kev->data = 0; } else {
--- a/src/event/ngx_event.c Thu May 22 11:11:16 2008 +0000 +++ b/src/event/ngx_event.c Thu May 22 12:09:41 2008 +0000 @@ -942,7 +942,7 @@ ngx_str_t *value; if (ecf->connections != NGX_CONF_UNSET_UINT) { - return "is duplicate" ; + return "is duplicate"; } if (ngx_strcmp(cmd->name.data, "connections") == 0) { @@ -977,7 +977,7 @@ ngx_event_module_t *module; if (ecf->use != NGX_CONF_UNSET_UINT) { - return "is duplicate" ; + return "is duplicate"; } value = cf->args->elts;
--- a/src/event/ngx_event_pipe.c Thu May 22 11:11:16 2008 +0000 +++ b/src/event/ngx_event_pipe.c Thu May 22 12:09:41 2008 +0000 @@ -880,7 +880,7 @@ ll = free; - for (cl = *free ; cl; cl = cl->next) { + for (cl = *free; cl; cl = cl->next) { if (cl->buf == s) { *ll = cl->next; break;
--- a/src/http/modules/ngx_http_proxy_module.c Thu May 22 11:11:16 2008 +0000 +++ b/src/http/modules/ngx_http_proxy_module.c Thu May 22 12:09:41 2008 +0000 @@ -1224,7 +1224,7 @@ umcf = ngx_http_get_module_main_conf(r, ngx_http_upstream_module); - for ( ;; ) { + for ( ;; ) { rc = ngx_http_parse_header_line(r, &r->upstream->buffer);
--- a/src/http/modules/ngx_http_ssi_filter_module.c Thu May 22 11:11:16 2008 +0000 +++ b/src/http/modules/ngx_http_ssi_filter_module.c Thu May 22 12:09:41 2008 +0000 @@ -1637,7 +1637,7 @@ quoted = 0; - for (i = 0 ; i < text->len; i++) { + for (i = 0; i < text->len; i++) { ch = text->data[i]; if (!quoted) {
--- a/src/http/ngx_http_core_module.h Thu May 22 11:11:16 2008 +0000 +++ b/src/http/ngx_http_core_module.h Thu May 22 12:09:41 2008 +0000 @@ -255,10 +255,10 @@ ngx_array_t *locations; /* pointer to the modules' loc_conf */ - void **loc_conf ; + void **loc_conf; uint32_t limit_except; - void **limit_except_loc_conf ; + void **limit_except_loc_conf; ngx_http_handler_pt handler; @@ -401,7 +401,7 @@ \ r->allow_ranges = 0; \ if (r->headers_out.accept_ranges) { \ - r->headers_out.accept_ranges->hash = 0 ; \ + r->headers_out.accept_ranges->hash = 0; \ r->headers_out.accept_ranges = NULL; \ }
--- a/src/http/ngx_http_header_filter_module.c Thu May 22 11:11:16 2008 +0000 +++ b/src/http/ngx_http_header_filter_module.c Thu May 22 12:09:41 2008 +0000 @@ -536,7 +536,7 @@ } b->last = ngx_copy(b->last, header[i].key.data, header[i].key.len); - *b->last++ = ':' ; *b->last++ = ' ' ; + *b->last++ = ':'; *b->last++ = ' '; b->last = ngx_copy(b->last, header[i].value.data, header[i].value.len); *b->last++ = CR; *b->last++ = LF;
--- a/src/http/ngx_http_special_response.c Thu May 22 11:11:16 2008 +0000 +++ b/src/http/ngx_http_special_response.c Thu May 22 12:09:41 2008 +0000 @@ -619,7 +619,7 @@ b->last = tail + len; out[1].buf = b; - out[1].next = NULL;; + out[1].next = NULL; if (msie_padding) { b = ngx_calloc_buf(r->pool); @@ -633,7 +633,7 @@ out[1].next = &out[2]; out[2].buf = b; - out[2].next = NULL;; + out[2].next = NULL; } if (r == r->main) {