diff options
author | guenther <> | 2019-07-14 03:30:46 +0000 |
---|---|---|
committer | guenther <> | 2019-07-14 03:30:46 +0000 |
commit | ce9daaa0080f6ec467441aa485eb3f11ad6fb74a (patch) | |
tree | 5082b2b4a1bbd244a864f580178d406f6a694e72 /src/usr.bin/openssl/pkey.c | |
parent | e9ef26d0b799866960d5d8ea8c87d53cea6b50ff (diff) | |
download | openbsd-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/pkey.c')
-rw-r--r-- | src/usr.bin/openssl/pkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/pkey.c b/src/usr.bin/openssl/pkey.c index fa88e55032..06b4c01894 100644 --- a/src/usr.bin/openssl/pkey.c +++ b/src/usr.bin/openssl/pkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkey.c,v 1.14 2019/02/09 15:49:21 inoguchi Exp $ */ | 1 | /* $OpenBSD: pkey.c,v 1.15 2019/07/14 03:30:46 guenther 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 2006 | 3 | * project 2006 |
4 | */ | 4 | */ |
@@ -97,7 +97,7 @@ pkey_opt_cipher(int argc, char **argv, int *argsused) | |||
97 | return (0); | 97 | return (0); |
98 | } | 98 | } |
99 | 99 | ||
100 | static struct option pkey_options[] = { | 100 | static const struct option pkey_options[] = { |
101 | { | 101 | { |
102 | .name = "in", | 102 | .name = "in", |
103 | .argname = "file", | 103 | .argname = "file", |