From 0b3f100b46b42fb08df66ad74b2cf1656f13467b Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Thu, 16 May 2013 13:00:48 +0000 Subject: [PATCH] Fixed compiler warning; sorted includes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1483334 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/lua_request.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 41fb79fbbd..eb5e392a15 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -15,16 +15,15 @@ * limitations under the License. */ -#include -#include - #include "mod_lua.h" -#include "util_script.h" #include "lua_apr.h" -#include "scoreboard.h" #include "lua_dbd.h" +#include "scoreboard.h" #include "util_md5.h" +#include "util_script.h" #include "util_varbuf.h" +#include "apr_pools.h" +#include "apr_thread_mutex.h" #include @@ -1574,7 +1573,7 @@ static int lua_ap_sleep(lua_State *L) apr_interval_time_t msec; luaL_checktype(L, 1, LUA_TNUMBER); - msec = (lua_tonumber(L, 1) * 1000000); + msec = (apr_interval_time_t)(lua_tonumber(L, 1) * 1000000); apr_sleep(msec); return 0; } -- 2.40.0