summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-09-05 20:53:02 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-09-05 20:53:02 +0000
commite1f6a7f4d403b9ff1a019b18706b6963ac1c603e (patch)
tree7e81a93dfadd3d1fe3a197165c71a9b70af4aa66 /regress
parent97b1487226bb61c4f5092eeb97f6e7897877bbd3 (diff)
cast time_t to long long before printing for portability
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libcrypto/asn1/asn1time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libcrypto/asn1/asn1time.c b/regress/lib/libcrypto/asn1/asn1time.c
index 266ab994110..184256d664f 100644
--- a/regress/lib/libcrypto/asn1/asn1time.c
+++ b/regress/lib/libcrypto/asn1/asn1time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn1time.c,v 1.14 2022/07/05 04:49:02 anton Exp $ */
+/* $OpenBSD: asn1time.c,v 1.15 2022/09/05 20:53:01 tb Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
*
@@ -319,7 +319,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att)
int64_t a = timegm(&tm);
int64_t b = att->time;
fprintf(stderr, "FAIL: test %i - times don't match, expected %lld got %lld\n",
- test_no, b, a);
+ test_no, (long long)b, (long long)a);
goto done;
}