aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-07-23 11:40:10 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-07-23 11:40:10 +0300
commitc8a194b29aed55fee195b5e11a20af6d1eeef961 (patch)
treef2a7a35113c8367835bd31c817b976b9a31ccb96 /src
parentf2368597c2b2b0263e5472c2002a52e7594094f0 (diff)
downloadnginx-c8a194b29aed55fee195b5e11a20af6d1eeef961.tar.gz
nginx-c8a194b29aed55fee195b5e11a20af6d1eeef961.zip
Style: moved function declarations to match usual code style.
Plus a few other minor style changes.
Diffstat (limited to 'src')
-rw-r--r--src/http/v3/ngx_http_v3_module.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/http/v3/ngx_http_v3_module.c b/src/http/v3/ngx_http_v3_module.c
index 00169ef4e..2483b9cb6 100644
--- a/src/http/v3/ngx_http_v3_module.c
+++ b/src/http/v3/ngx_http_v3_module.c
@@ -10,6 +10,14 @@
#include <ngx_http.h>
+static ngx_int_t ngx_http_variable_http3(ngx_http_request_t *r,
+ ngx_http_variable_value_t *v, uintptr_t data);
+static ngx_int_t ngx_http_v3_add_variables(ngx_conf_t *cf);
+static void *ngx_http_v3_create_srv_conf(ngx_conf_t *cf);
+static char *ngx_http_v3_merge_srv_conf(ngx_conf_t *cf, void *parent,
+ void *child);
+
+
static ngx_command_t ngx_http_v3_commands[] = {
{ ngx_string("http3_max_field_size"),
@@ -37,14 +45,6 @@ static ngx_command_t ngx_http_v3_commands[] = {
};
-static ngx_int_t ngx_http_variable_http3(ngx_http_request_t *r,
- ngx_http_variable_value_t *v, uintptr_t data);
-static ngx_int_t ngx_http_v3_add_variables(ngx_conf_t *cf);
-static void *ngx_http_v3_create_srv_conf(ngx_conf_t *cf);
-static char *ngx_http_v3_merge_srv_conf(ngx_conf_t *cf,
- void *parent, void *child);
-
-
static ngx_http_module_t ngx_http_v3_module_ctx = {
ngx_http_v3_add_variables, /* preconfiguration */
NULL, /* postconfiguration */
@@ -78,8 +78,7 @@ ngx_module_t ngx_http_v3_module = {
static ngx_http_variable_t ngx_http_v3_vars[] = {
- { ngx_string("http3"), NULL, ngx_http_variable_http3,
- 0, 0, 0 },
+ { ngx_string("http3"), NULL, ngx_http_variable_http3, 0, 0, 0 },
ngx_http_null_variable
};
@@ -123,7 +122,6 @@ ngx_http_v3_add_variables(ngx_conf_t *cf)
}
-
static void *
ngx_http_v3_create_srv_conf(ngx_conf_t *cf)
{