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

Tatsuo Ishii ishii at sraoss.co.jp
Wed Aug 9 12:13:07 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
------
V4_2_STABLE

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

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