pgpool2.git / summary / log / commit / refs
commit 80eaae2f59833f89ad2106fdd3336257e1f3c25f
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Mon Jan 31 14:47:06 2011 +0000
Fix warning of printf() and time_t.
pool_process_reporting.c | 2 +-
pool_relcache.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pool_process_reporting.c b/pool_process_reporting.c
index b2214a9b9..39f204a72 100644
--- a/pool_process_reporting.c
+++ b/pool_process_reporting.c
@@ -437,7 +437,7 @@ void config_reporting(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend)
i++;
strncpy(status[i].name, "relcache_expire", POOLCONFIG_MAXNAMELEN);
- snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%d", pool_config->relcache_expire);
+ snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%ld", pool_config->relcache_expire);
strncpy(status[i].desc, "relation cache expiration time in seconds", POOLCONFIG_MAXDESCLEN);
i++;
diff --git a/pool_relcache.c b/pool_relcache.c
index 6bdea1035..471a771d6 100644
--- a/pool_relcache.c
+++ b/pool_relcache.c
@@ -148,7 +148,7 @@ void *pool_search_relcache(POOL_RELCACHE *relcache, POOL_CONNECTION_POOL *backen
{
if (now > relcache->cache[i].expire)
{
- pool_debug("pool_search_relcache: relcache for database:%s table:%s expired. now:%d expiration time:%d", dbname, rel, now, relcache->cache[i].expire);
+ pool_debug("pool_search_relcache: relcache for database:%s table:%s expired. now:%ld expiration time:%ld", dbname, rel, now, relcache->cache[i].expire);
relcache->cache[i].refcnt = 0;
break;
}
[parent: 862d0b354f37]