artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8466c4
)
cast time_t to long long before printing for portability
author
tb
<tb@openbsd.org>
Mon, 5 Sep 2022 20:53:01 +0000
(20:53 +0000)
committer
tb
<tb@openbsd.org>
Mon, 5 Sep 2022 20:53:01 +0000
(20:53 +0000)
regress/lib/libcrypto/asn1/asn1time.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/asn1/asn1time.c
b/regress/lib/libcrypto/asn1/asn1time.c
index
266ab99
..
184256d
100644
(file)
--- a/
regress/lib/libcrypto/asn1/asn1time.c
+++ b/
regress/lib/libcrypto/asn1/asn1time.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: asn1time.c,v 1.1
4 2022/07/05 04:49:02 anton
Exp $ */
+/* $OpenBSD: asn1time.c,v 1.1
5 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;
}