@@ -2096,7 +2096,8 @@ ngx_http_lua_ffi_shdict_free_space(ngx_shm_zone_t *zone)
20962096int
20972097ngx_http_lua_ffi_shdict_get_macos (ngx_http_lua_shdict_get_params_t * p )
20982098{
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 ,
21002101 p -> value_type , p -> str_value_buf ,
21012102 p -> str_value_len , p -> num_value ,
21022103 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)
21072108int
21082109ngx_http_lua_ffi_shdict_store_macos (ngx_http_lua_shdict_store_params_t * p )
21092110{
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 ,
21122115 p -> str_value_len , p -> num_value ,
21132116 p -> exptime , p -> user_flags ,
21142117 p -> errmsg , p -> forcible );
@@ -2118,7 +2121,7 @@ ngx_http_lua_ffi_shdict_store_macos(ngx_http_lua_shdict_store_params_t *p)
21182121int
21192122ngx_http_lua_ffi_shdict_incr_macos (ngx_http_lua_shdict_incr_params_t * p )
21202123{
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 ,
21222125 p -> num_value , p -> errmsg ,
21232126 p -> has_init , p -> init , p -> init_ttl ,
21242127 p -> forcible );
0 commit comments