summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_util.c
diff options
context:
space:
mode:
authortb <>2023-02-16 08:38:17 +0000
committertb <>2023-02-16 08:38:17 +0000
commit24a27fd0d17d515b00097199de60fa85a76a95df (patch)
tree689defafde66dbfa38a7854af566bd9a05f191b7 /src/lib/libcrypto/ui/ui_util.c
parent3170d87c6599656e7568dca509714cf70723f0d2 (diff)
downloadopenbsd-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/ui/ui_util.c')
-rw-r--r--src/lib/libcrypto/ui/ui_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ui/ui_util.c b/src/lib/libcrypto/ui/ui_util.c
index 5e7048531c..4fa4058cd4 100644
--- a/src/lib/libcrypto/ui/ui_util.c
+++ b/src/lib/libcrypto/ui/ui_util.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ui_util.c,v 1.13 2022/12/23 02:20:28 jsing Exp $ */ 1/* $OpenBSD: ui_util.c,v 1.14 2023/02/16 08:38:17 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2001-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2001-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -70,7 +70,7 @@ UI_UTIL_read_pw_string(char *buf, int length, const char *prompt, int verify)
70 explicit_bzero(buff, BUFSIZ); 70 explicit_bzero(buff, BUFSIZ);
71 return (ret); 71 return (ret);
72} 72}
73LCRYPTO_ALIAS(UI_UTIL_read_pw_string) 73LCRYPTO_ALIAS(UI_UTIL_read_pw_string);
74 74
75int 75int
76UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) 76UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify)
@@ -95,4 +95,4 @@ UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify)
95 ok = 0; 95 ok = 0;
96 return (ok); 96 return (ok);
97} 97}
98LCRYPTO_ALIAS(UI_UTIL_read_pw) 98LCRYPTO_ALIAS(UI_UTIL_read_pw);