Cast time_t's in debug output to long long.

Should fix Coverity warning about truncation of 64bit time_t.
This commit is contained in:
Darren Tucker 2023-02-27 21:04:22 +11:00
parent b0fd60a9de
commit aa33b4d396
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ auth_shadow_pwexpired(Authctxt *ctxt)
}
today = time(NULL) / DAY;
debug3("%s: today %d sp_lstchg %d sp_max %d", __func__, (int)today,
(int)spw->sp_lstchg, (int)spw->sp_max);
debug3_f("today %lld sp_lstchg %lld sp_max %lld", (long long)today,
(long long)spw->sp_lstchg, (long long)spw->sp_max);
#if defined(__hpux) && !defined(HAVE_SECUREWARE)
if (iscomsec()) {