]> granicus.if.org Git - apache/commitdiff
Fixed compiler warning; sorted includes.
authorGuenter Knauf <fuankg@apache.org>
Thu, 16 May 2013 13:00:48 +0000 (13:00 +0000)
committerGuenter Knauf <fuankg@apache.org>
Thu, 16 May 2013 13:00:48 +0000 (13:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1483334 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_request.c

index 41fb79fbbdc227ae825c302f337b67342d3a6518..eb5e392a15bcaa6f7c7a50b3ff6e36974ee79a1f 100644 (file)
  * limitations under the License.
  */
 
-#include <apr_pools.h>
-#include <apr_thread_mutex.h>
-
 #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 <lua.h>
 
@@ -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;
 }