From afe6f64c816985297ca766d9fd176491dc92f52f Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 17 Apr 2023 08:43:16 +0000 Subject: [PATCH] Use C99 initializers for the default_pctx and mark it static const --- lib/libcrypto/asn1/tasn_prn.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/libcrypto/asn1/tasn_prn.c b/lib/libcrypto/asn1/tasn_prn.c index 7f93e4876a0..9652a9766a1 100644 --- a/lib/libcrypto/asn1/tasn_prn.c +++ b/lib/libcrypto/asn1/tasn_prn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tasn_prn.c,v 1.23 2022/11/26 16:08:50 tb Exp $ */ +/* $OpenBSD: tasn_prn.c,v 1.24 2023/04/17 08:43:16 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -72,15 +72,10 @@ /* ASN1_PCTX routines */ -ASN1_PCTX default_pctx = { - ASN1_PCTX_FLAGS_SHOW_ABSENT, /* flags */ - 0, /* nm_flags */ - 0, /* cert_flags */ - 0, /* oid_flags */ - 0 /* str_flags */ +static const ASN1_PCTX default_pctx = { + .flags = ASN1_PCTX_FLAGS_SHOW_ABSENT, }; - ASN1_PCTX * ASN1_PCTX_new(void) { -- 2.20.1