mirror of
https://github.com/nginx/nginx.git
synced 2024-12-26 17:01:07 -06:00
Status: indentation and style, no functional changes.
This commit is contained in:
parent
7348764673
commit
88132eed54
@ -10,18 +10,19 @@
|
|||||||
#include <ngx_http.h>
|
#include <ngx_http.h>
|
||||||
|
|
||||||
|
|
||||||
|
static ngx_int_t ngx_http_stub_status_handler(ngx_http_request_t *r);
|
||||||
static ngx_int_t ngx_http_stub_status_variable(ngx_http_request_t *r,
|
static ngx_int_t ngx_http_stub_status_variable(ngx_http_request_t *r,
|
||||||
ngx_http_variable_value_t *v, uintptr_t data);
|
ngx_http_variable_value_t *v, uintptr_t data);
|
||||||
static ngx_int_t ngx_http_stub_status_add_variables(ngx_conf_t *cf);
|
static ngx_int_t ngx_http_stub_status_add_variables(ngx_conf_t *cf);
|
||||||
|
static char *ngx_http_set_stub_status(ngx_conf_t *cf, ngx_command_t *cmd,
|
||||||
|
void *conf);
|
||||||
|
|
||||||
static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd,
|
|
||||||
void *conf);
|
|
||||||
|
|
||||||
static ngx_command_t ngx_http_status_commands[] = {
|
static ngx_command_t ngx_http_status_commands[] = {
|
||||||
|
|
||||||
{ ngx_string("stub_status"),
|
{ ngx_string("stub_status"),
|
||||||
NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
||||||
ngx_http_set_status,
|
ngx_http_set_stub_status,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
NULL },
|
NULL },
|
||||||
@ -30,7 +31,6 @@ static ngx_command_t ngx_http_status_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static ngx_http_module_t ngx_http_stub_status_module_ctx = {
|
static ngx_http_module_t ngx_http_stub_status_module_ctx = {
|
||||||
ngx_http_stub_status_add_variables, /* preconfiguration */
|
ngx_http_stub_status_add_variables, /* preconfiguration */
|
||||||
NULL, /* postconfiguration */
|
NULL, /* postconfiguration */
|
||||||
@ -80,7 +80,8 @@ static ngx_http_variable_t ngx_http_stub_status_vars[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r)
|
static ngx_int_t
|
||||||
|
ngx_http_stub_status_handler(ngx_http_request_t *r)
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size;
|
||||||
ngx_int_t rc;
|
ngx_int_t rc;
|
||||||
@ -223,12 +224,13 @@ ngx_http_stub_status_add_variables(ngx_conf_t *cf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
static char *
|
||||||
|
ngx_http_set_stub_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||||
{
|
{
|
||||||
ngx_http_core_loc_conf_t *clcf;
|
ngx_http_core_loc_conf_t *clcf;
|
||||||
|
|
||||||
clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
|
clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
|
||||||
clcf->handler = ngx_http_status_handler;
|
clcf->handler = ngx_http_stub_status_handler;
|
||||||
|
|
||||||
return NGX_CONF_OK;
|
return NGX_CONF_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user