@@ -2096,7 +2096,8 @@ ngx_http_lua_ffi_shdict_free_space(ngx_shm_zone_t *zone)
2096
2096
int
2097
2097
ngx_http_lua_ffi_shdict_get_macos (ngx_http_lua_shdict_get_params_t * p )
2098
2098
{
2099
- return ngx_http_lua_ffi_shdict_get (p -> zone , p -> key , p -> key_len ,
2099
+ return ngx_http_lua_ffi_shdict_get (p -> zone ,
2100
+ (u_char * ) p -> key , p -> key_len ,
2100
2101
p -> value_type , p -> str_value_buf ,
2101
2102
p -> str_value_len , p -> num_value ,
2102
2103
p -> user_flags , p -> get_stale ,
@@ -2107,8 +2108,10 @@ ngx_http_lua_ffi_shdict_get_macos(ngx_http_lua_shdict_get_params_t *p)
2107
2108
int
2108
2109
ngx_http_lua_ffi_shdict_store_macos (ngx_http_lua_shdict_store_params_t * p )
2109
2110
{
2110
- return ngx_http_lua_ffi_shdict_store (p -> zone , p -> op , p -> key , p -> key_len ,
2111
- p -> value_type , p -> str_value_buf ,
2111
+ return ngx_http_lua_ffi_shdict_store (p -> zone , p -> op ,
2112
+ (u_char * ) p -> key , p -> key_len ,
2113
+ p -> value_type ,
2114
+ (u_char * ) p -> str_value_buf ,
2112
2115
p -> str_value_len , p -> num_value ,
2113
2116
p -> exptime , p -> user_flags ,
2114
2117
p -> errmsg , p -> forcible );
@@ -2118,7 +2121,7 @@ ngx_http_lua_ffi_shdict_store_macos(ngx_http_lua_shdict_store_params_t *p)
2118
2121
int
2119
2122
ngx_http_lua_ffi_shdict_incr_macos (ngx_http_lua_shdict_incr_params_t * p )
2120
2123
{
2121
- return ngx_http_lua_ffi_shdict_incr (p -> zone , p -> key , p -> key_len ,
2124
+ return ngx_http_lua_ffi_shdict_incr (p -> zone , ( u_char * ) p -> key , p -> key_len ,
2122
2125
p -> num_value , p -> errmsg ,
2123
2126
p -> has_init , p -> init , p -> init_ttl ,
2124
2127
p -> forcible );
0 commit comments