summaryrefslogtreecommitdiffstats
path: root/usr.bin/openssl/errstr.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2019-07-14 03:30:45 +0000
committerguenther <guenther@openbsd.org>2019-07-14 03:30:45 +0000
commitea149709f9c454edaf29aa39e76e940dc6ad6a8d (patch)
treee3604c8efa44eb4dd264d4dae912fe565b111b73 /usr.bin/openssl/errstr.c
parentDon't lock the struct unveil being created in the child when cloning the (diff)
downloadwireguard-openbsd-ea149709f9c454edaf29aa39e76e940dc6ad6a8d.tar.xz
wireguard-openbsd-ea149709f9c454edaf29aa39e76e940dc6ad6a8d.zip
Mark the initialized struct options arrays as both static and const.
This moves them from .data to .data.rel.ro ok deraadt@ inoguchi@
Diffstat (limited to 'usr.bin/openssl/errstr.c')
-rw-r--r--usr.bin/openssl/errstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/openssl/errstr.c b/usr.bin/openssl/errstr.c
index 0d31d4fc85a..bb6bfc785f8 100644
--- a/usr.bin/openssl/errstr.c
+++ b/usr.bin/openssl/errstr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: errstr.c,v 1.6 2015/10/17 15:00:11 doug Exp $ */
+/* $OpenBSD: errstr.c,v 1.7 2019/07/14 03:30:45 guenther Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -72,7 +72,7 @@ struct {
int stats;
} errstr_config;
-struct option errstr_options[] = {
+static const struct option errstr_options[] = {
{
.name = "stats",
.desc = "Print debugging statistics for the hash table",