From 34929b0a0257cad28c9dec6392b626dea27b91a2 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 22 Jun 2022 09:54:19 +0000 Subject: [PATCH] Fix format string: use %zu for size_t, not %lu. --- regress/lib/libcrypto/asn1/asn1object.c | 6 +++--- 1 file 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 * @@ -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); -- 2.20.1