diff options
author | tb <> | 2022-09-05 20:53:01 +0000 |
---|---|---|
committer | tb <> | 2022-09-05 20:53:01 +0000 |
commit | 0b315a15aa761d629b59c54becaeecc44627e42e (patch) | |
tree | 8d1823c22522e981f3376bea2cee92c755d4764f | |
parent | fd3446a28a8545095183ef47018492fb4a658b93 (diff) | |
download | openbsd-0b315a15aa761d629b59c54becaeecc44627e42e.tar.gz openbsd-0b315a15aa761d629b59c54becaeecc44627e42e.tar.bz2 openbsd-0b315a15aa761d629b59c54becaeecc44627e42e.zip |
cast time_t to long long before printing for portability
-rw-r--r-- | src/regress/lib/libcrypto/asn1/asn1time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1time.c b/src/regress/lib/libcrypto/asn1/asn1time.c index 266ab99411..184256d664 100644 --- a/src/regress/lib/libcrypto/asn1/asn1time.c +++ b/src/regress/lib/libcrypto/asn1/asn1time.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1time.c,v 1.14 2022/07/05 04:49:02 anton Exp $ */ | 1 | /* $OpenBSD: asn1time.c,v 1.15 2022/09/05 20:53:01 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -319,7 +319,7 @@ asn1_gentime_test(int test_no, struct asn1_time_test *att) | |||
319 | int64_t a = timegm(&tm); | 319 | int64_t a = timegm(&tm); |
320 | int64_t b = att->time; | 320 | int64_t b = att->time; |
321 | fprintf(stderr, "FAIL: test %i - times don't match, expected %lld got %lld\n", | 321 | fprintf(stderr, "FAIL: test %i - times don't match, expected %lld got %lld\n", |
322 | test_no, b, a); | 322 | test_no, (long long)b, (long long)a); |
323 | goto done; | 323 | goto done; |
324 | } | 324 | } |
325 | 325 | ||