[pgpool-committers: 9529] pgpool: Fix covery warning.

Tatsuo Ishii ishii at sraoss.co.jp
Wed Aug 9 12:13:23 JST 2023


Fix covery warning.

Fix query cache module assigned time_t value to int32 variable. Change
the variable type to int64. Per Coverity.  Also use difftime() to
calculate time_t difference. This is a recommended practice.
https://www.jpcert.or.jp/sc-rules/c-msc05-c.html

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a45aa3011ae15e2dc55c65b88ba8ebf5a7b35d4d

Modified Files
--------------
src/include/query_cache/pool_memqcache.h | 2 +-
src/query_cache/pool_memqcache.c         | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list