diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-22 09:54:20 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-22 09:54:20 +0000 |
commit | 56c74fa8515ca0b9a2837c62e2144ca703a7f903 (patch) | |
tree | 7b61f5eb9910484aa324a5a7fe26b4908d4ebc9d /regress | |
parent | b4e81876e99d34d13e53ea0d8080da167a5153f8 (diff) |
Fix format string: use %zu for size_t, not %lu.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libcrypto/asn1/asn1object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/asn1/asn1object.c b/regress/lib/libcrypto/asn1/asn1object.c index 3005fc31512..dee7c2410a4 100644 --- a/regress/lib/libcrypto/asn1/asn1object.c +++ b/regress/lib/libcrypto/asn1/asn1object.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1object.c,v 1.7 2022/05/13 16:39:58 tb Exp $ */ +/* $OpenBSD: asn1object.c,v 1.8 2022/06/22 09:54:19 tb Exp $ */ /* * Copyright (c) 2017, 2021, 2022 Joel Sing <jsing@openbsd.org> * @@ -393,7 +393,7 @@ asn1_object_txt_test(void) ret = i2t_ASN1_OBJECT(small_buf, sizeof(small_buf), aobj); if (ret < 0 || (unsigned long)ret != strlen(obj_txt)) { fprintf(stderr, "FAIL: i2t_ASN1_OBJECT() with small buffer " - "returned %d, want %lu\n", ret, strlen(obj_txt)); + "returned %d, want %zu\n", ret, strlen(obj_txt)); goto failed; } @@ -421,7 +421,7 @@ asn1_object_txt_test(void) ret = i2a_ASN1_OBJECT(bio, aobj); if (ret < 0 || (unsigned long)ret != strlen(obj_txt)) { fprintf(stderr, "FAIL: i2a_ASN1_OBJECT() returned %d, " - "want %lu\n", ret, strlen(obj_txt)); + "want %zu\n", ret, strlen(obj_txt)); goto failed; } data_len = BIO_get_mem_data(bio, &data); |