mirror of
https://github.com/apache/httpd.git
synced 2025-11-17 00:03:29 +03:00
Fix some compiler warnings.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1500362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -884,7 +884,7 @@ static int lua_apr_touch(lua_State *L)
|
||||
r = ap_lua_check_request_rec(L, 1);
|
||||
luaL_checktype(L, 2, LUA_TSTRING);
|
||||
path = lua_tostring(L, 2);
|
||||
mtime = luaL_optnumber(L, 3, apr_time_now());
|
||||
mtime = (apr_time_t)luaL_optnumber(L, 3, (lua_Number)apr_time_now());
|
||||
status = apr_file_mtime_set(path, mtime, r->pool);
|
||||
lua_pushboolean(L, (status == 0));
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user