httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1483334 - /httpd/httpd/trunk/modules/lua/lua_request.c
Date Thu, 16 May 2013 13:00:49 GMT
Author: fuankg
Date: Thu May 16 13:00:48 2013
New Revision: 1483334

URL: http://svn.apache.org/r1483334
Log:
Fixed compiler warning; sorted includes.

Modified:
    httpd/httpd/trunk/modules/lua/lua_request.c

Modified: httpd/httpd/trunk/modules/lua/lua_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1483334&r1=1483333&r2=1483334&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Thu May 16 13:00:48 2013
@@ -15,16 +15,15 @@
  * 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;
 }



Mime
View raw message