From: tb Date: Wed, 13 Dec 2023 07:19:37 +0000 (+0000) Subject: rfc3779: remove redundant const. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d3ce54f2613e5bd018465fe0fb3f656756d0ae8d;p=openbsd rfc3779: remove redundant const. This is already included in the typedef (yuck) and makes some Windows compilers unhappy. --- 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;