summaryrefslogtreecommitdiff
path: root/auth-shadow.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2023-02-27 21:04:22 +1100
committerDarren Tucker <dtucker@dtucker.net>2023-02-27 21:04:22 +1100
commitaa33b4d396abf47a2a45f982f28d054fb1dcb5c3 (patch)
tree15f692796176462f2740ea5160418262e4f751d2 /auth-shadow.c
parentb0fd60a9de62a03189ad57d0c07f0ac51dc00e95 (diff)
downloadopenssh-git-aa33b4d396abf47a2a45f982f28d054fb1dcb5c3.tar.gz
Cast time_t's in debug output to long long.
Should fix Coverity warning about truncation of 64bit time_t.
Diffstat (limited to 'auth-shadow.c')
-rw-r--r--auth-shadow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-shadow.c b/auth-shadow.c
index e1eb68bc..b1e3aa9f 100644
--- a/auth-shadow.c
+++ b/auth-shadow.c
@@ -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()) {