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/pcy_tree.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/pcy_tree.c')
| -rw-r--r-- | src/lib/libcrypto/x509/pcy_tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/pcy_tree.c b/src/lib/libcrypto/x509/pcy_tree.c index 050503bdf3..56e05910cd 100644 --- a/src/lib/libcrypto/x509/pcy_tree.c +++ b/src/lib/libcrypto/x509/pcy_tree.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pcy_tree.c,v 1.5 2022/12/26 07:18:53 jmc Exp $ */ | 1 | /* $OpenBSD: pcy_tree.c,v 1.6 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 2004. | 3 | * project 2004. |
| 4 | */ | 4 | */ |
| @@ -657,7 +657,7 @@ X509_policy_tree_free(X509_POLICY_TREE *tree) | |||
| 657 | free(tree->levels); | 657 | free(tree->levels); |
| 658 | free(tree); | 658 | free(tree); |
| 659 | } | 659 | } |
| 660 | LCRYPTO_ALIAS(X509_policy_tree_free) | 660 | LCRYPTO_ALIAS(X509_policy_tree_free); |
| 661 | 661 | ||
| 662 | /* Application policy checking function. | 662 | /* Application policy checking function. |
| 663 | * Return codes: | 663 | * Return codes: |
| @@ -770,4 +770,4 @@ error: | |||
| 770 | 770 | ||
| 771 | return 0; | 771 | return 0; |
| 772 | } | 772 | } |
| 773 | LCRYPTO_ALIAS(X509_policy_check) | 773 | LCRYPTO_ALIAS(X509_policy_check); |
