diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-14 14:14:40 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-14 14:14:40 +0000 |
commit | ae8fd06824c459294398366e146e4f72a22dc647 (patch) | |
tree | 5f108d83a38a26c7eb55f210219cc8bc1f0708c6 /regress | |
parent | 311aff10efdb3225fa4e6a0831e0a58babd25510 (diff) |
Cast the uint64_t SCT timestamps to (unsigned long long) for printing.
What a wonderful choice between this and that PRI ugliness...
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libcrypto/ct/cttest.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/ct/cttest.c b/regress/lib/libcrypto/ct/cttest.c index a0c75560efc..dd7b8141093 100644 --- a/regress/lib/libcrypto/ct/cttest.c +++ b/regress/lib/libcrypto/ct/cttest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cttest.c,v 1.6 2023/04/14 12:37:20 tb Exp $ */ +/* $OpenBSD: cttest.c,v 1.7 2023/04/14 14:14:39 tb Exp $ */ /* * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> * @@ -225,8 +225,9 @@ ct_compare_test_scts(STACK_OF(SCT) *scts) } if (SCT_get_timestamp(sct) != sdt->timestamp) { fprintf(stderr, "FAIL: SCT %d - got timestamp %llu, " - "want %llu\n", i, SCT_get_timestamp(sct), - sdt->timestamp); + "want %llu\n", i, + (unsigned long long)SCT_get_timestamp(sct), + (unsigned long long)sdt->timestamp); goto failure; } if (SCT_get_signature_nid(sct) != sdt->signature_nid) { |