]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authorderaadt@openbsd.org <deraadt@openbsd.org>
Fri, 8 Dec 2017 03:45:52 +0000 (03:45 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 11 Dec 2017 23:32:04 +0000 (10:32 +1100)
time_t printing needs %lld and (long long) casts ok djm

OpenBSD-Commit-ID: 4a93bc2b0d42a39b8f8de8bb74d07ad2e5e83ef7

moduli.c

index e983b07b74c91ab4e4b94b24b5c38e5306289d7b..233cba8e881a9af54c860d059d840ed14a84a6b9 100644 (file)
--- a/moduli.c
+++ b/moduli.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: moduli.c,v 1.31 2016/09/12 01:22:38 deraadt Exp $ */
+/* $OpenBSD: moduli.c,v 1.32 2017/12/08 03:45:52 deraadt Exp $ */
 /*
  * Copyright 1994 Phil Karn <karn@qualcomm.com>
  * Copyright 1996-1998, 2003 William Allen Simpson <wsimpson@greendragon.com>
@@ -412,8 +412,8 @@ gen_candidates(FILE *out, u_int32_t memory, u_int32_t power, BIGNUM *start)
 
        time(&time_stop);
 
-       logit("%.24s Sieved with %u small primes in %ld seconds",
-           ctime(&time_stop), largetries, (long(time_stop - time_start));
+       logit("%.24s Sieved with %u small primes in %lld seconds",
+           ctime(&time_stop), largetries, (long long)(time_stop - time_start));
 
        for (j = r = 0; j < largebits; j++) {
                if (BIT_TEST(LargeSieve, j))