added typecasts to suppress clang warnings
This commit is contained in:
Родитель
d66c01d39b
Коммит
b0da782fb9
|
@ -215,7 +215,7 @@ ngx_http_lua_content_by_lua(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
if (clcf == NULL) {
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
clcf->handler = cmd->post;
|
||||
clcf->handler = (ngx_http_handler_pt)(cmd->post);
|
||||
|
||||
return NGX_CONF_OK;
|
||||
}
|
||||
|
|
|
@ -277,7 +277,7 @@ ngx_http_lua_ngx_echo(lua_State *L, ngx_flag_t newline)
|
|||
|
||||
for (i = 1; i <= nargs; i++) {
|
||||
p = lua_tolstring(L, i, &len);
|
||||
b->last = ngx_copy(b->last, p, len);
|
||||
b->last = ngx_copy(b->last, (u_char*)p, len);
|
||||
}
|
||||
|
||||
if (newline) {
|
||||
|
@ -1962,7 +1962,7 @@ ngx_http_lookup_ndk_set_var_directive(u_char *name,
|
|||
continue;
|
||||
}
|
||||
|
||||
return filter->func;
|
||||
return (ndk_set_var_value_pt)(filter->func);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2000,7 +2000,7 @@ ngx_http_lua_run_set_var_directive(lua_State *L)
|
|||
|
||||
dd("calling set_var func for %s", p);
|
||||
|
||||
func = lua_touserdata(L, lua_upvalueindex(2));
|
||||
func = (ndk_set_var_value_pt)lua_touserdata(L, lua_upvalueindex(2));
|
||||
|
||||
rc = func(r, &res, &arg);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче