1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Fix more ISO C90 forbids mixed declarations and code...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728544 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Paul Querna
2008-12-21 22:53:08 +00:00
parent a36f6f7048
commit 2e920b6abf
3 changed files with 41 additions and 28 deletions

View File

@@ -54,13 +54,14 @@ apr_status_t apl_lua_map_handler(apl_dir_cfg *cfg,
const char *function,
const char *pattern, const char *scope)
{
ap_regex_t *uri_pattern;
apr_status_t rv;
apl_mapped_handler_spec *handler =
apr_palloc(cfg->pool, sizeof(apl_mapped_handler_spec));
handler->uri_pattern = NULL;
handler->function_name = NULL;
ap_regex_t *uri_pattern = apr_palloc(cfg->pool, sizeof(ap_regex_t));
uri_pattern = apr_palloc(cfg->pool, sizeof(ap_regex_t));
if ((rv = ap_regcomp(uri_pattern, pattern, 0)) != APR_SUCCESS) {
return rv;
}
@@ -162,13 +163,14 @@ static int cmd_foo(lua_State *L)
/* helper function for the logging functions below */
static int cmd_log_at(lua_State *L, int level)
{
const char *msg;
cmd_parms *cmd = check_cmd_parms(L, 1);
lua_Debug dbg;
lua_getstack(L, 1, &dbg);
lua_getinfo(L, "Sl", &dbg);
const char *msg = luaL_checkstring(L, 2);
msg = luaL_checkstring(L, 2);
ap_log_error(dbg.source, dbg.currentline, level, 0, cmd->server, msg);
return 0;
}