From d3ce54f2613e5bd018465fe0fb3f656756d0ae8d Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 13 Dec 2023 07:19:37 +0000 Subject: [PATCH] rfc3779: remove redundant const. This is already included in the typedef (yuck) and makes some Windows compilers unhappy. --- regress/lib/libcrypto/x509/rfc3779/rfc3779.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/regress/lib/libcrypto/x509/rfc3779/rfc3779.c b/regress/lib/libcrypto/x509/rfc3779/rfc3779.c index 33808d43e36..1274df74551 100644 --- a/regress/lib/libcrypto/x509/rfc3779/rfc3779.c +++ b/regress/lib/libcrypto/x509/rfc3779/rfc3779.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfc3779.c,v 1.9 2023/04/20 07:39:17 tb Exp $ */ +/* $OpenBSD: rfc3779.c,v 1.10 2023/12/13 07:19:37 tb Exp $ */ /* * Copyright (c) 2021 Theo Buehler * @@ -361,10 +361,10 @@ IPAddrBlocks_free(IPAddrBlocks *addr) * extensions on each call. */ -static const ASN1_ITEM_EXP * +static ASN1_ITEM_EXP * get_IPAddrBlocks_it(void) { - static const ASN1_ITEM_EXP *my_IPAddrBlocks_it; + static ASN1_ITEM_EXP *my_IPAddrBlocks_it; const X509V3_EXT_METHOD *v3_addr; if (my_IPAddrBlocks_it != NULL) @@ -383,7 +383,7 @@ get_IPAddrBlocks_it(void) static IPAddrBlocks * d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) { - const ASN1_ITEM_EXP *my_IPAddrBlocks_it; + ASN1_ITEM_EXP *my_IPAddrBlocks_it; if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) return NULL; @@ -395,7 +395,7 @@ d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) static int i2d_IPAddrBlocks(IPAddrBlocks *addrs, unsigned char **out) { - const ASN1_ITEM_EXP *my_IPAddrBlocks_it; + ASN1_ITEM_EXP *my_IPAddrBlocks_it; if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) return -1; -- 2.20.1