Fix covery warning.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 9 Aug 2023 02:10:28 +0000 (11:10 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 9 Aug 2023 02:16:38 +0000 (11:16 +0900)
commita45aa3011ae15e2dc55c65b88ba8ebf5a7b35d4d
tree4cbd864173c2bd3d83752c035e4757308e516bd5
parent7db55fa23dec0c10099459fb28d1108746835879
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
src/include/query_cache/pool_memqcache.h
src/query_cache/pool_memqcache.c