1
0
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:
Guenter Knauf
2013-07-07 03:12:52 +00:00
parent 8c170296bf
commit 3b905a6fb4
3 changed files with 3 additions and 3 deletions

View File

@@ -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;