@@ -76,7 +76,7 @@ impl NgxHttpOrigDstCtx {
76
76
}
77
77
}
78
78
79
- static ngx_http_orig_dst_module_ctx : ngx_http_module_t = ngx_http_module_t {
79
+ static NGX_HTTP_ORIG_DST_MODULE_CTX : ngx_http_module_t = ngx_http_module_t {
80
80
preconfiguration : Some ( Module :: preconfiguration) ,
81
81
postconfiguration : Some ( Module :: postconfiguration) ,
82
82
create_main_conf : Some ( Module :: create_main_conf) ,
@@ -93,6 +93,7 @@ static ngx_http_orig_dst_module_ctx: ngx_http_module_t = ngx_http_module_t {
93
93
ngx:: ngx_modules!( ngx_http_orig_dst_module) ;
94
94
95
95
#[ used]
96
+ #[ allow( non_upper_case_globals) ]
96
97
#[ cfg_attr( not( feature = "export-modules" ) , no_mangle) ]
97
98
pub static mut ngx_http_orig_dst_module: ngx_module_t = ngx_module_t {
98
99
ctx_index : ngx_uint_t:: MAX ,
@@ -102,7 +103,7 @@ pub static mut ngx_http_orig_dst_module: ngx_module_t = ngx_module_t {
102
103
spare1 : 0 ,
103
104
version : nginx_version as ngx_uint_t ,
104
105
signature : NGX_RS_MODULE_SIGNATURE . as_ptr ( ) as * const c_char ,
105
- ctx : & ngx_http_orig_dst_module_ctx as * const _ as * mut _ ,
106
+ ctx : & NGX_HTTP_ORIG_DST_MODULE_CTX as * const _ as * mut _ ,
106
107
commands : std:: ptr:: null_mut ( ) ,
107
108
type_ : NGX_HTTP_MODULE as ngx_uint_t ,
108
109
@@ -124,7 +125,7 @@ pub static mut ngx_http_orig_dst_module: ngx_module_t = ngx_module_t {
124
125
spare_hook7 : 0 ,
125
126
} ;
126
127
127
- static mut ngx_http_orig_dst_vars : [ ngx_http_variable_t ; 3 ] = [
128
+ static mut NGX_HTTP_ORIG_DST_VARS : [ ngx_http_variable_t ; 3 ] = [
128
129
// ngx_str_t name
129
130
// ngx_http_set_variable_pt set_handler
130
131
// ngx_http_get_variable_pt get_handler
@@ -297,7 +298,7 @@ impl HTTPModule for Module {
297
298
298
299
// static ngx_int_t ngx_http_orig_dst_add_variables(ngx_conf_t *cf)
299
300
unsafe extern "C" fn preconfiguration ( cf : * mut ngx_conf_t ) -> ngx_int_t {
300
- for mut v in ngx_http_orig_dst_vars {
301
+ for mut v in NGX_HTTP_ORIG_DST_VARS {
301
302
if v. name . len == 0 {
302
303
break ;
303
304
}
0 commit comments