diff options
author | tb <> | 2023-02-16 08:38:17 +0000 |
---|---|---|
committer | tb <> | 2023-02-16 08:38:17 +0000 |
commit | b1fbdd21532891fac5b0f128e57331894bd69d84 (patch) | |
tree | 689defafde66dbfa38a7854af566bd9a05f191b7 /src/lib/libcrypto/x509/x509_d2.c | |
parent | ee0f647faa09f91cb79b628dcb818adaa381af90 (diff) | |
download | openbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.tar.gz openbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.tar.bz2 openbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.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_d2.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_d2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_d2.c b/src/lib/libcrypto/x509/x509_d2.c index 522062a694..bf358ec299 100644 --- a/src/lib/libcrypto/x509/x509_d2.c +++ b/src/lib/libcrypto/x509/x509_d2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_d2.c,v 1.11 2022/11/14 17:48:50 beck Exp $ */ | 1 | /* $OpenBSD: x509_d2.c,v 1.12 2023/02/16 08:38:17 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -83,7 +83,7 @@ X509_STORE_set_default_paths(X509_STORE *ctx) | |||
83 | 83 | ||
84 | return (1); | 84 | return (1); |
85 | } | 85 | } |
86 | LCRYPTO_ALIAS(X509_STORE_set_default_paths) | 86 | LCRYPTO_ALIAS(X509_STORE_set_default_paths); |
87 | 87 | ||
88 | int | 88 | int |
89 | X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *path) | 89 | X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *path) |
@@ -108,7 +108,7 @@ X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *path) | |||
108 | return (0); | 108 | return (0); |
109 | return (1); | 109 | return (1); |
110 | } | 110 | } |
111 | LCRYPTO_ALIAS(X509_STORE_load_locations) | 111 | LCRYPTO_ALIAS(X509_STORE_load_locations); |
112 | 112 | ||
113 | int | 113 | int |
114 | X509_STORE_load_mem(X509_STORE *ctx, void *buf, int len) | 114 | X509_STORE_load_mem(X509_STORE *ctx, void *buf, int len) |
@@ -128,4 +128,4 @@ X509_STORE_load_mem(X509_STORE *ctx, void *buf, int len) | |||
128 | 128 | ||
129 | return (1); | 129 | return (1); |
130 | } | 130 | } |
131 | LCRYPTO_ALIAS(X509_STORE_load_mem) | 131 | LCRYPTO_ALIAS(X509_STORE_load_mem); |