mirror of
https://github.com/nginx/nginx.git
synced 2025-06-06 17:02:39 +08:00
Added missing static specifiers.
This commit is contained in:
parent
b4e9e37719
commit
0759f088a5
@ -56,8 +56,8 @@ typedef struct {
|
|||||||
((u_char *) (n) - offsetof(ngx_resolver_node_t, node))
|
((u_char *) (n) - offsetof(ngx_resolver_node_t, node))
|
||||||
|
|
||||||
|
|
||||||
ngx_int_t ngx_udp_connect(ngx_resolver_connection_t *rec);
|
static ngx_int_t ngx_udp_connect(ngx_resolver_connection_t *rec);
|
||||||
ngx_int_t ngx_tcp_connect(ngx_resolver_connection_t *rec);
|
static ngx_int_t ngx_tcp_connect(ngx_resolver_connection_t *rec);
|
||||||
|
|
||||||
|
|
||||||
static void ngx_resolver_cleanup(void *data);
|
static void ngx_resolver_cleanup(void *data);
|
||||||
@ -4379,7 +4379,7 @@ ngx_resolver_log_error(ngx_log_t *log, u_char *buf, size_t len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngx_int_t
|
static ngx_int_t
|
||||||
ngx_udp_connect(ngx_resolver_connection_t *rec)
|
ngx_udp_connect(ngx_resolver_connection_t *rec)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
@ -4463,7 +4463,7 @@ failed:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngx_int_t
|
static ngx_int_t
|
||||||
ngx_tcp_connect(ngx_resolver_connection_t *rec)
|
ngx_tcp_connect(ngx_resolver_connection_t *rec)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
@ -78,7 +78,7 @@ static ngx_command_t ngx_devpoll_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ngx_event_module_t ngx_devpoll_module_ctx = {
|
static ngx_event_module_t ngx_devpoll_module_ctx = {
|
||||||
&devpoll_name,
|
&devpoll_name,
|
||||||
ngx_devpoll_create_conf, /* create configuration */
|
ngx_devpoll_create_conf, /* create configuration */
|
||||||
ngx_devpoll_init_conf, /* init configuration */
|
ngx_devpoll_init_conf, /* init configuration */
|
||||||
|
@ -176,7 +176,7 @@ static ngx_command_t ngx_epoll_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ngx_event_module_t ngx_epoll_module_ctx = {
|
static ngx_event_module_t ngx_epoll_module_ctx = {
|
||||||
&epoll_name,
|
&epoll_name,
|
||||||
ngx_epoll_create_conf, /* create configuration */
|
ngx_epoll_create_conf, /* create configuration */
|
||||||
ngx_epoll_init_conf, /* init configuration */
|
ngx_epoll_init_conf, /* init configuration */
|
||||||
|
@ -169,7 +169,7 @@ static ngx_command_t ngx_eventport_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ngx_event_module_t ngx_eventport_module_ctx = {
|
static ngx_event_module_t ngx_eventport_module_ctx = {
|
||||||
&eventport_name,
|
&eventport_name,
|
||||||
ngx_eventport_create_conf, /* create configuration */
|
ngx_eventport_create_conf, /* create configuration */
|
||||||
ngx_eventport_init_conf, /* init configuration */
|
ngx_eventport_init_conf, /* init configuration */
|
||||||
|
@ -52,7 +52,7 @@ static ngx_command_t ngx_iocp_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ngx_event_module_t ngx_iocp_module_ctx = {
|
static ngx_event_module_t ngx_iocp_module_ctx = {
|
||||||
&iocp_name,
|
&iocp_name,
|
||||||
ngx_iocp_create_conf, /* create configuration */
|
ngx_iocp_create_conf, /* create configuration */
|
||||||
ngx_iocp_init_conf, /* init configuration */
|
ngx_iocp_init_conf, /* init configuration */
|
||||||
|
@ -73,7 +73,7 @@ static ngx_command_t ngx_kqueue_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ngx_event_module_t ngx_kqueue_module_ctx = {
|
static ngx_event_module_t ngx_kqueue_module_ctx = {
|
||||||
&kqueue_name,
|
&kqueue_name,
|
||||||
ngx_kqueue_create_conf, /* create configuration */
|
ngx_kqueue_create_conf, /* create configuration */
|
||||||
ngx_kqueue_init_conf, /* init configuration */
|
ngx_kqueue_init_conf, /* init configuration */
|
||||||
|
@ -25,9 +25,9 @@ static struct pollfd *event_list;
|
|||||||
static ngx_uint_t nevents;
|
static ngx_uint_t nevents;
|
||||||
|
|
||||||
|
|
||||||
static ngx_str_t poll_name = ngx_string("poll");
|
static ngx_str_t poll_name = ngx_string("poll");
|
||||||
|
|
||||||
ngx_event_module_t ngx_poll_module_ctx = {
|
static ngx_event_module_t ngx_poll_module_ctx = {
|
||||||
&poll_name,
|
&poll_name,
|
||||||
NULL, /* create configuration */
|
NULL, /* create configuration */
|
||||||
ngx_poll_init_conf, /* init configuration */
|
ngx_poll_init_conf, /* init configuration */
|
||||||
|
@ -33,9 +33,9 @@ static ngx_uint_t nevents;
|
|||||||
static ngx_event_t **event_index;
|
static ngx_event_t **event_index;
|
||||||
|
|
||||||
|
|
||||||
static ngx_str_t select_name = ngx_string("select");
|
static ngx_str_t select_name = ngx_string("select");
|
||||||
|
|
||||||
ngx_event_module_t ngx_select_module_ctx = {
|
static ngx_event_module_t ngx_select_module_ctx = {
|
||||||
&select_name,
|
&select_name,
|
||||||
NULL, /* create configuration */
|
NULL, /* create configuration */
|
||||||
ngx_select_init_conf, /* init configuration */
|
ngx_select_init_conf, /* init configuration */
|
||||||
|
@ -34,9 +34,9 @@ static ngx_uint_t nevents;
|
|||||||
static ngx_event_t **event_index;
|
static ngx_event_t **event_index;
|
||||||
|
|
||||||
|
|
||||||
static ngx_str_t select_name = ngx_string("select");
|
static ngx_str_t select_name = ngx_string("select");
|
||||||
|
|
||||||
ngx_event_module_t ngx_select_module_ctx = {
|
static ngx_event_module_t ngx_select_module_ctx = {
|
||||||
&select_name,
|
&select_name,
|
||||||
NULL, /* create configuration */
|
NULL, /* create configuration */
|
||||||
ngx_select_init_conf, /* init configuration */
|
ngx_select_init_conf, /* init configuration */
|
||||||
|
@ -59,20 +59,20 @@ ngx_int_t ngx_accept_disabled;
|
|||||||
|
|
||||||
#if (NGX_STAT_STUB)
|
#if (NGX_STAT_STUB)
|
||||||
|
|
||||||
ngx_atomic_t ngx_stat_accepted0;
|
static ngx_atomic_t ngx_stat_accepted0;
|
||||||
ngx_atomic_t *ngx_stat_accepted = &ngx_stat_accepted0;
|
ngx_atomic_t *ngx_stat_accepted = &ngx_stat_accepted0;
|
||||||
ngx_atomic_t ngx_stat_handled0;
|
static ngx_atomic_t ngx_stat_handled0;
|
||||||
ngx_atomic_t *ngx_stat_handled = &ngx_stat_handled0;
|
ngx_atomic_t *ngx_stat_handled = &ngx_stat_handled0;
|
||||||
ngx_atomic_t ngx_stat_requests0;
|
static ngx_atomic_t ngx_stat_requests0;
|
||||||
ngx_atomic_t *ngx_stat_requests = &ngx_stat_requests0;
|
ngx_atomic_t *ngx_stat_requests = &ngx_stat_requests0;
|
||||||
ngx_atomic_t ngx_stat_active0;
|
static ngx_atomic_t ngx_stat_active0;
|
||||||
ngx_atomic_t *ngx_stat_active = &ngx_stat_active0;
|
ngx_atomic_t *ngx_stat_active = &ngx_stat_active0;
|
||||||
ngx_atomic_t ngx_stat_reading0;
|
static ngx_atomic_t ngx_stat_reading0;
|
||||||
ngx_atomic_t *ngx_stat_reading = &ngx_stat_reading0;
|
ngx_atomic_t *ngx_stat_reading = &ngx_stat_reading0;
|
||||||
ngx_atomic_t ngx_stat_writing0;
|
static ngx_atomic_t ngx_stat_writing0;
|
||||||
ngx_atomic_t *ngx_stat_writing = &ngx_stat_writing0;
|
ngx_atomic_t *ngx_stat_writing = &ngx_stat_writing0;
|
||||||
ngx_atomic_t ngx_stat_waiting0;
|
static ngx_atomic_t ngx_stat_waiting0;
|
||||||
ngx_atomic_t *ngx_stat_waiting = &ngx_stat_waiting0;
|
ngx_atomic_t *ngx_stat_waiting = &ngx_stat_waiting0;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ static ngx_command_t ngx_event_core_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ngx_event_module_t ngx_event_core_module_ctx = {
|
static ngx_event_module_t ngx_event_core_module_ctx = {
|
||||||
&event_core_name,
|
&event_core_name,
|
||||||
ngx_event_core_create_conf, /* create configuration */
|
ngx_event_core_create_conf, /* create configuration */
|
||||||
ngx_event_core_init_conf, /* init configuration */
|
ngx_event_core_init_conf, /* init configuration */
|
||||||
|
@ -123,7 +123,7 @@ static char *ngx_http_charset_merge_loc_conf(ngx_conf_t *cf,
|
|||||||
static ngx_int_t ngx_http_charset_postconfiguration(ngx_conf_t *cf);
|
static ngx_int_t ngx_http_charset_postconfiguration(ngx_conf_t *cf);
|
||||||
|
|
||||||
|
|
||||||
ngx_str_t ngx_http_charset_default_types[] = {
|
static ngx_str_t ngx_http_charset_default_types[] = {
|
||||||
ngx_string("text/html"),
|
ngx_string("text/html"),
|
||||||
ngx_string("text/xml"),
|
ngx_string("text/xml"),
|
||||||
ngx_string("text/plain"),
|
ngx_string("text/plain"),
|
||||||
|
@ -48,7 +48,7 @@ static ngx_command_t ngx_http_gzip_static_commands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
ngx_http_module_t ngx_http_gzip_static_module_ctx = {
|
static ngx_http_module_t ngx_http_gzip_static_module_ctx = {
|
||||||
NULL, /* preconfiguration */
|
NULL, /* preconfiguration */
|
||||||
ngx_http_gzip_static_init, /* postconfiguration */
|
ngx_http_gzip_static_init, /* postconfiguration */
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ static ngx_int_t ngx_http_static_handler(ngx_http_request_t *r);
|
|||||||
static ngx_int_t ngx_http_static_init(ngx_conf_t *cf);
|
static ngx_int_t ngx_http_static_init(ngx_conf_t *cf);
|
||||||
|
|
||||||
|
|
||||||
ngx_http_module_t ngx_http_static_module_ctx = {
|
static ngx_http_module_t ngx_http_static_module_ctx = {
|
||||||
NULL, /* preconfiguration */
|
NULL, /* preconfiguration */
|
||||||
ngx_http_static_init, /* postconfiguration */
|
ngx_http_static_init, /* postconfiguration */
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ static ngx_int_t ngx_http_xslt_filter_init(ngx_conf_t *cf);
|
|||||||
static void ngx_http_xslt_filter_exit(ngx_cycle_t *cycle);
|
static void ngx_http_xslt_filter_exit(ngx_cycle_t *cycle);
|
||||||
|
|
||||||
|
|
||||||
ngx_str_t ngx_http_xslt_default_types[] = {
|
static ngx_str_t ngx_http_xslt_default_types[] = {
|
||||||
ngx_string("text/xml"),
|
ngx_string("text/xml"),
|
||||||
ngx_null_string
|
ngx_null_string
|
||||||
};
|
};
|
||||||
|
@ -188,7 +188,7 @@ static ngx_int_t ngx_http_upstream_ssl_name(ngx_http_request_t *r,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
ngx_http_upstream_header_t ngx_http_upstream_headers_in[] = {
|
static ngx_http_upstream_header_t ngx_http_upstream_headers_in[] = {
|
||||||
|
|
||||||
{ ngx_string("Status"),
|
{ ngx_string("Status"),
|
||||||
ngx_http_upstream_process_header_line,
|
ngx_http_upstream_process_header_line,
|
||||||
|
Loading…
Reference in New Issue
Block a user