1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

Attempt to make mod_lua compile under a strict c89 compiler by moving all variable declarations to be before code.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Paul Querna
2008-12-21 22:38:07 +00:00
parent afa287e242
commit ce336c773a
5 changed files with 61 additions and 41 deletions

View File

@@ -34,8 +34,9 @@
apr_table_t *check_apr_table(lua_State *L, int index)
{
apr_table_t *t;
luaL_checkudata(L, index, "Apr.Table");
apr_table_t *t = (apr_table_t *) lua_unboxpointer(L, index);
t = (apr_table_t *) lua_unboxpointer(L, index);
return t;
}