1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +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

@@ -85,7 +85,7 @@ static apr_status_t socache_mc_init(ap_socache_instance_t *ctx,
{
apr_status_t rv;
int thread_limit = 0;
int nservers = 0;
apr_uint16_t nservers = 0;
char *cache_config;
char *split;
char *tok;

View File

@@ -113,7 +113,7 @@ static void put_int_flush_right(request_rec * r, int i, int field)
if (r)
ap_rputc('0' + i % 10, r);
else
apr_file_putc('0' + i % 10, out);
apr_file_putc((char)('0' + i % 10), out);
}
else {
if (r)

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;