mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
C99 and unused variable warnings
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -85,6 +85,7 @@ static int lua_open_hook(lua_State *L, apr_pool_t *p)
|
|||||||
static int lua_handler(request_rec *r)
|
static int lua_handler(request_rec *r)
|
||||||
{
|
{
|
||||||
ap_lua_dir_cfg *dcfg;
|
ap_lua_dir_cfg *dcfg;
|
||||||
|
apr_pool_t *pool;
|
||||||
if (strcmp(r->handler, "lua-script")) {
|
if (strcmp(r->handler, "lua-script")) {
|
||||||
return DECLINED;
|
return DECLINED;
|
||||||
}
|
}
|
||||||
@@ -97,9 +98,6 @@ static int lua_handler(request_rec *r)
|
|||||||
lua_State *L;
|
lua_State *L;
|
||||||
const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
|
const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
|
||||||
&lua_module);
|
&lua_module);
|
||||||
ap_lua_request_cfg *rcfg = ap_get_module_config(r->request_config,
|
|
||||||
&lua_module);
|
|
||||||
|
|
||||||
ap_lua_vm_spec *spec = NULL;
|
ap_lua_vm_spec *spec = NULL;
|
||||||
|
|
||||||
spec = apr_pcalloc(r->pool, sizeof(ap_lua_vm_spec));
|
spec = apr_pcalloc(r->pool, sizeof(ap_lua_vm_spec));
|
||||||
@@ -117,7 +115,6 @@ static int lua_handler(request_rec *r)
|
|||||||
spec->file,
|
spec->file,
|
||||||
"handle");
|
"handle");
|
||||||
|
|
||||||
apr_pool_t *pool;
|
|
||||||
switch (dcfg->vm_scope) {
|
switch (dcfg->vm_scope) {
|
||||||
case AP_LUA_SCOPE_ONCE:
|
case AP_LUA_SCOPE_ONCE:
|
||||||
apr_pool_create(&pool, r->pool);
|
apr_pool_create(&pool, r->pool);
|
||||||
|
Reference in New Issue
Block a user