]> granicus.if.org Git - apache/commitdiff
Fix some compiler warnings.
authorGuenter Knauf <fuankg@apache.org>
Sun, 7 Jul 2013 03:12:52 +0000 (03:12 +0000)
committerGuenter Knauf <fuankg@apache.org>
Sun, 7 Jul 2013 03:12:52 +0000 (03:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1500362 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_socache_memcache.c
modules/generators/mod_info.c
modules/lua/lua_request.c

index beeeec2c982e4c5dbe61b5f4fbe56ec946fdc103..8cabd8a50ba7b3dcf58e8ff5dc28f044dceefeb8 100644 (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;
index 2f2db9fa61d1d327ded4f0f81f811eea63aeb361..e5e63de1378413f2ffa77bd39d3ad79e76f53f12 100644 (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)
index c2cfb5354872ccdea1cfda20197fdb3390d91642..eb6aef1d164a4a8a39de00f977ef5208dc622f6f 100644 (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;