summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ec.c
diff options
context:
space:
mode:
authorguenther <>2019-07-14 03:30:46 +0000
committerguenther <>2019-07-14 03:30:46 +0000
commitce9daaa0080f6ec467441aa485eb3f11ad6fb74a (patch)
tree5082b2b4a1bbd244a864f580178d406f6a694e72 /src/usr.bin/openssl/ec.c
parente9ef26d0b799866960d5d8ea8c87d53cea6b50ff (diff)
downloadopenbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.tar.gz
openbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.tar.bz2
openbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.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 'src/usr.bin/openssl/ec.c')
-rw-r--r--src/usr.bin/openssl/ec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ec.c b/src/usr.bin/openssl/ec.c
index f9056154ed..3aa9b0c2c5 100644
--- a/src/usr.bin/openssl/ec.c
+++ b/src/usr.bin/openssl/ec.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec.c,v 1.13 2019/02/09 15:49:21 inoguchi Exp $ */ 1/* $OpenBSD: ec.c,v 1.14 2019/07/14 03:30:45 guenther Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -140,7 +140,7 @@ ec_opt_named(char *arg)
140 return (0); 140 return (0);
141} 141}
142 142
143static struct option ec_options[] = { 143static const struct option ec_options[] = {
144 { 144 {
145 .name = "conv_form", 145 .name = "conv_form",
146 .argname = "form", 146 .argname = "form",