Cast the uint64_t SCT timestamps to (unsigned long long) for printing.
authortb <tb@openbsd.org>
Fri, 14 Apr 2023 14:14:39 +0000 (14:14 +0000)
committertb <tb@openbsd.org>
Fri, 14 Apr 2023 14:14:39 +0000 (14:14 +0000)
What a wonderful choice between this and that PRI ugliness...

regress/lib/libcrypto/ct/cttest.c

index a0c7556..dd7b814 100644 (file)
@@ -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) {