Skip to content

Commit aa33b4d

Browse files
committed
Cast time_t's in debug output to long long.
Should fix Coverity warning about truncation of 64bit time_t.
1 parent b0fd60a commit aa33b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth-shadow.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ auth_shadow_pwexpired(Authctxt *ctxt)
9898
}
9999

100100
today = time(NULL) / DAY;
101-
debug3("%s: today %d sp_lstchg %d sp_max %d", __func__, (int)today,
102-
(int)spw->sp_lstchg, (int)spw->sp_max);
101+
debug3_f("today %lld sp_lstchg %lld sp_max %lld", (long long)today,
102+
(long long)spw->sp_lstchg, (long long)spw->sp_max);
103103

104104
#if defined(__hpux) && !defined(HAVE_SECUREWARE)
105105
if (iscomsec()) {

0 commit comments

Comments
 (0)