From: deraadt Date: Fri, 8 Dec 2017 03:45:52 +0000 (+0000) Subject: time_t printing needs %lld and (long long) casts X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ba953c8678c2e56d26372c92071450672ff635da;p=openbsd time_t printing needs %lld and (long long) casts ok djm --- diff --git a/usr.bin/ssh/moduli.c b/usr.bin/ssh/moduli.c index 0c9b51c1611..b5c0d79a545 100644 --- a/usr.bin/ssh/moduli.c +++ b/usr.bin/ssh/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 * Copyright 1996-1998, 2003 William Allen Simpson @@ -406,8 +406,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))