mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
style fix
This commit is contained in:
parent
61e991c70a
commit
3b30476068
@ -1078,7 +1078,7 @@ ngx_set_cpu_affinity(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"invalid character \"%c\" in \"worker_cpu_affinity\"",
|
"invalid character \"%c\" in \"worker_cpu_affinity\"",
|
||||||
ch);
|
ch);
|
||||||
return NGX_CONF_ERROR ;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@ ngx_open_listening_sockets(ngx_cycle_t *cycle)
|
|||||||
|
|
||||||
/* TODO: configurable try number */
|
/* TODO: configurable try number */
|
||||||
|
|
||||||
for (tries = 5 ; tries; tries--) {
|
for (tries = 5; tries; tries--) {
|
||||||
failed = 0;
|
failed = 0;
|
||||||
|
|
||||||
/* for each listening socket */
|
/* for each listening socket */
|
||||||
|
@ -942,7 +942,7 @@ ngx_event_connections(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
ngx_str_t *value;
|
ngx_str_t *value;
|
||||||
|
|
||||||
if (ecf->connections != NGX_CONF_UNSET_UINT) {
|
if (ecf->connections != NGX_CONF_UNSET_UINT) {
|
||||||
return "is duplicate" ;
|
return "is duplicate";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ngx_strcmp(cmd->name.data, "connections") == 0) {
|
if (ngx_strcmp(cmd->name.data, "connections") == 0) {
|
||||||
@ -977,7 +977,7 @@ ngx_event_use(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
ngx_event_module_t *module;
|
ngx_event_module_t *module;
|
||||||
|
|
||||||
if (ecf->use != NGX_CONF_UNSET_UINT) {
|
if (ecf->use != NGX_CONF_UNSET_UINT) {
|
||||||
return "is duplicate" ;
|
return "is duplicate";
|
||||||
}
|
}
|
||||||
|
|
||||||
value = cf->args->elts;
|
value = cf->args->elts;
|
||||||
|
@ -880,7 +880,7 @@ ngx_event_pipe_free_shadow_raw_buf(ngx_chain_t **free, ngx_buf_t *buf)
|
|||||||
|
|
||||||
ll = free;
|
ll = free;
|
||||||
|
|
||||||
for (cl = *free ; cl; cl = cl->next) {
|
for (cl = *free; cl; cl = cl->next) {
|
||||||
if (cl->buf == s) {
|
if (cl->buf == s) {
|
||||||
*ll = cl->next;
|
*ll = cl->next;
|
||||||
break;
|
break;
|
||||||
|
@ -1637,7 +1637,7 @@ ngx_http_ssi_evaluate_string(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx,
|
|||||||
|
|
||||||
quoted = 0;
|
quoted = 0;
|
||||||
|
|
||||||
for (i = 0 ; i < text->len; i++) {
|
for (i = 0; i < text->len; i++) {
|
||||||
ch = text->data[i];
|
ch = text->data[i];
|
||||||
|
|
||||||
if (!quoted) {
|
if (!quoted) {
|
||||||
|
@ -255,10 +255,10 @@ struct ngx_http_core_loc_conf_s {
|
|||||||
ngx_array_t *locations;
|
ngx_array_t *locations;
|
||||||
|
|
||||||
/* pointer to the modules' loc_conf */
|
/* pointer to the modules' loc_conf */
|
||||||
void **loc_conf ;
|
void **loc_conf;
|
||||||
|
|
||||||
uint32_t limit_except;
|
uint32_t limit_except;
|
||||||
void **limit_except_loc_conf ;
|
void **limit_except_loc_conf;
|
||||||
|
|
||||||
ngx_http_handler_pt handler;
|
ngx_http_handler_pt handler;
|
||||||
|
|
||||||
@ -401,7 +401,7 @@ extern ngx_uint_t ngx_http_max_module;
|
|||||||
\
|
\
|
||||||
r->allow_ranges = 0; \
|
r->allow_ranges = 0; \
|
||||||
if (r->headers_out.accept_ranges) { \
|
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; \
|
r->headers_out.accept_ranges = NULL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ ngx_http_header_filter(ngx_http_request_t *r)
|
|||||||
}
|
}
|
||||||
|
|
||||||
b->last = ngx_copy(b->last, header[i].key.data, header[i].key.len);
|
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 = ngx_copy(b->last, header[i].value.data, header[i].value.len);
|
||||||
*b->last++ = CR; *b->last++ = LF;
|
*b->last++ = CR; *b->last++ = LF;
|
||||||
|
@ -619,7 +619,7 @@ ngx_http_send_special_response(ngx_http_request_t *r,
|
|||||||
b->last = tail + len;
|
b->last = tail + len;
|
||||||
|
|
||||||
out[1].buf = b;
|
out[1].buf = b;
|
||||||
out[1].next = NULL;;
|
out[1].next = NULL;
|
||||||
|
|
||||||
if (msie_padding) {
|
if (msie_padding) {
|
||||||
b = ngx_calloc_buf(r->pool);
|
b = ngx_calloc_buf(r->pool);
|
||||||
@ -633,7 +633,7 @@ ngx_http_send_special_response(ngx_http_request_t *r,
|
|||||||
|
|
||||||
out[1].next = &out[2];
|
out[1].next = &out[2];
|
||||||
out[2].buf = b;
|
out[2].buf = b;
|
||||||
out[2].next = NULL;;
|
out[2].next = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r == r->main) {
|
if (r == r->main) {
|
||||||
|
Loading…
Reference in New Issue
Block a user