diff options
| author | tb <> | 2023-02-16 08:38:17 +0000 |
|---|---|---|
| committer | tb <> | 2023-02-16 08:38:17 +0000 |
| commit | 24a27fd0d17d515b00097199de60fa85a76a95df (patch) | |
| tree | 689defafde66dbfa38a7854af566bd9a05f191b7 /src/lib/libcrypto/x509/x509_pmaps.c | |
| parent | 3170d87c6599656e7568dca509714cf70723f0d2 (diff) | |
| download | openbsd-24a27fd0d17d515b00097199de60fa85a76a95df.tar.gz openbsd-24a27fd0d17d515b00097199de60fa85a76a95df.tar.bz2 openbsd-24a27fd0d17d515b00097199de60fa85a76a95df.zip | |
libressl *_namespace.h: adjust *_ALIAS() to require a semicolon
LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon.
This does not conform to style(9), breaks editors and ctags and
(most importantly) my workflow. Fix this by neutering them with
asm("") so that -Wpedantic doesn't complain. There's precedent
in libc's namespace.h
fix suggested by & ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_pmaps.c')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_pmaps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_pmaps.c b/src/lib/libcrypto/x509/x509_pmaps.c index 3bc4b9d637..39aebfee86 100644 --- a/src/lib/libcrypto/x509/x509_pmaps.c +++ b/src/lib/libcrypto/x509/x509_pmaps.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_pmaps.c,v 1.2 2022/11/14 17:48:50 beck Exp $ */ | 1 | /* $OpenBSD: x509_pmaps.c,v 1.3 2023/02/16 08:38:17 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -137,14 +137,14 @@ POLICY_MAPPING_new(void) | |||
| 137 | { | 137 | { |
| 138 | return (POLICY_MAPPING*)ASN1_item_new(&POLICY_MAPPING_it); | 138 | return (POLICY_MAPPING*)ASN1_item_new(&POLICY_MAPPING_it); |
| 139 | } | 139 | } |
| 140 | LCRYPTO_ALIAS(POLICY_MAPPING_new) | 140 | LCRYPTO_ALIAS(POLICY_MAPPING_new); |
| 141 | 141 | ||
| 142 | void | 142 | void |
| 143 | POLICY_MAPPING_free(POLICY_MAPPING *a) | 143 | POLICY_MAPPING_free(POLICY_MAPPING *a) |
| 144 | { | 144 | { |
| 145 | ASN1_item_free((ASN1_VALUE *)a, &POLICY_MAPPING_it); | 145 | ASN1_item_free((ASN1_VALUE *)a, &POLICY_MAPPING_it); |
| 146 | } | 146 | } |
| 147 | LCRYPTO_ALIAS(POLICY_MAPPING_free) | 147 | LCRYPTO_ALIAS(POLICY_MAPPING_free); |
| 148 | 148 | ||
| 149 | static STACK_OF(CONF_VALUE) * | 149 | static STACK_OF(CONF_VALUE) * |
| 150 | i2v_POLICY_MAPPINGS(const X509V3_EXT_METHOD *method, void *a, | 150 | i2v_POLICY_MAPPINGS(const X509V3_EXT_METHOD *method, void *a, |
