comparison src/http/modules/ngx_http_stub_status_module.c @ 5783:dc7c139fca21

Status: indentation and style, no functional changes.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 01 Aug 2014 18:36:35 +0400
parents 2cfc095a607a
children f5b612019042
comparison
equal deleted inserted replaced
5782:428303916425 5783:dc7c139fca21
8 #include <ngx_config.h> 8 #include <ngx_config.h>
9 #include <ngx_core.h> 9 #include <ngx_core.h>
10 #include <ngx_http.h> 10 #include <ngx_http.h>
11 11
12 12
13 static ngx_int_t ngx_http_stub_status_handler(ngx_http_request_t *r);
13 static ngx_int_t ngx_http_stub_status_variable(ngx_http_request_t *r, 14 static ngx_int_t ngx_http_stub_status_variable(ngx_http_request_t *r,
14 ngx_http_variable_value_t *v, uintptr_t data); 15 ngx_http_variable_value_t *v, uintptr_t data);
15 static ngx_int_t ngx_http_stub_status_add_variables(ngx_conf_t *cf); 16 static ngx_int_t ngx_http_stub_status_add_variables(ngx_conf_t *cf);
16 17 static char *ngx_http_set_stub_status(ngx_conf_t *cf, ngx_command_t *cmd,
17 static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd, 18 void *conf);
18 void *conf); 19
19 20
20 static ngx_command_t ngx_http_status_commands[] = { 21 static ngx_command_t ngx_http_status_commands[] = {
21 22
22 { ngx_string("stub_status"), 23 { ngx_string("stub_status"),
23 NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, 24 NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
24 ngx_http_set_status, 25 ngx_http_set_stub_status,
25 0, 26 0,
26 0, 27 0,
27 NULL }, 28 NULL },
28 29
29 ngx_null_command 30 ngx_null_command
30 }; 31 };
31
32 32
33 33
34 static ngx_http_module_t ngx_http_stub_status_module_ctx = { 34 static ngx_http_module_t ngx_http_stub_status_module_ctx = {
35 ngx_http_stub_status_add_variables, /* preconfiguration */ 35 ngx_http_stub_status_add_variables, /* preconfiguration */
36 NULL, /* postconfiguration */ 36 NULL, /* postconfiguration */
78 78
79 { ngx_null_string, NULL, NULL, 0, 0, 0 } 79 { ngx_null_string, NULL, NULL, 0, 0, 0 }
80 }; 80 };
81 81
82 82
83 static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r) 83 static ngx_int_t
84 ngx_http_stub_status_handler(ngx_http_request_t *r)
84 { 85 {
85 size_t size; 86 size_t size;
86 ngx_int_t rc; 87 ngx_int_t rc;
87 ngx_buf_t *b; 88 ngx_buf_t *b;
88 ngx_chain_t out; 89 ngx_chain_t out;
221 222
222 return NGX_OK; 223 return NGX_OK;
223 } 224 }
224 225
225 226
226 static char *ngx_http_set_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 227 static char *
228 ngx_http_set_stub_status(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
227 { 229 {
228 ngx_http_core_loc_conf_t *clcf; 230 ngx_http_core_loc_conf_t *clcf;
229 231
230 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); 232 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
231 clcf->handler = ngx_http_status_handler; 233 clcf->handler = ngx_http_stub_status_handler;
232 234
233 return NGX_CONF_OK; 235 return NGX_CONF_OK;
234 } 236 }