]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Cast time_t's in debug output to long long.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 27 Feb 2023 10:04:22 +0000 (21:04 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 27 Feb 2023 10:04:22 +0000 (21:04 +1100)
Should fix Coverity warning about truncation of 64bit time_t.

auth-shadow.c

index e1eb68bc368cdc44c295c6808801898174f1e1b7..b1e3aa9fc1b395f6965c4894b0f74ed21522259b 100644 (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()) {